terraform-aws-control_tower_account_factory icon indicating copy to clipboard operation
terraform-aws-control_tower_account_factory copied to clipboard

AWS CLI version 2

Open Menahem1 opened this issue 2 years ago • 1 comments

Hello,

Actually in customization steps by default the AWS CLI installed is in 1.x version, is it possible to have directly the v2 (it's now stable & recommended) ?

Thanks

Best regards

Menahem1 avatar Sep 14 '22 13:09 Menahem1

Thanks for bringing this to our attention @Menahem1, I've gone ahead and made a backlog to address this feature request!

hanafya avatar Sep 14 '22 18:09 hanafya

Any change on the status of this issue?

I'm trying to understand what context (ie what AWS profile) AFT is running in, and am able to do aws sts get-caller identity in the pre-api-helpers.sh. However, I can't list the available profiles with aws configure list-profiles because - and here this issue ties in directly - that command does not seem to be supported by CLI 1.x. Thanks.

rjhornsby avatar May 24 '23 00:05 rjhornsby

Hi @Menahem1 @rjhornsby,

As of AFT 1.11.0, AFT uses the aws/codebuild/amazonlinux2-x86_64-standard:5.0 container image for CodeBuild jobs, which ships with the AWS CLI v2 by default.

You should be able to access AWS CLI v2 features after upgrading to the latest AFT version.

stumins avatar Nov 27 '23 19:11 stumins

sorry for the delay - but thanks in any case for fixing this. seems to be working as expected now.

rjhornsby avatar Apr 11 '24 18:04 rjhornsby