Merge branch '2.7' into fix-aws-sts-handle-errors

This commit is contained in:
Pepe Fagoaga authored and GitHub committed 2021-11-29 12:19:48 +01:00
commit 0b9526da1d
9 files changed
+204 -7

No files matched your search

+2 -2
View File
@@ -11,9 +11,9 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.
# both variables are mandatory to be set together
assume_role(){
if [[ -z $ROLE_TO_ASSUME ]]; then
# Both variables are mandatory to be set togethe
if [[ -z $ROLE_TO_ASSUME || -z $ACCOUNT_TO_ASSUME ]]; then
echo "$OPTRED ERROR!$OPTNORMAL - Both Account ID (-A) and IAM Role to assume (-R) must be set"
exit 1
fi