The CloudShell environment automatically uses your IAM permissions, so you don’t need to configure an IAM Role like you would for an EC2 instance.
sudo yum -y install jq gettext bash-completion

cfn-lint tool to help check CDK templates and other information, including verifying if resource properties are correct or if the configuration follows best practices.pip install cfn-lint

cfn-lint was installed successfully by running:cfn-lint --version

export ACCOUNT_ID=$(aws sts get-caller-identity --output text --query Account)
export AWS_REGION=$AWS_REGION
export AZS=($(aws ec2 describe-availability-zones --query 'AvailabilityZones[].ZoneName' --output text --region $AWS_REGION))

echo "export ACCOUNT_ID=${ACCOUNT_ID}" | tee -a ~/.bash_profile
echo "export AWS_REGION=${AWS_REGION}" | tee -a ~/.bash_profile
echo "export AZS=(${AZS[@]})" | tee -a ~/.bash_profile
aws configure set default.region ${AWS_REGION}

cdk --version

aws sts get-caller-identity
