You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 80: sts_client: STSClient = session.client("sts", config=BOTO3_CONFIG)
To Reproduce
Steps to reproduce the behavior:
Deploy the ec2_default_ebs_encryption with a non default region enabled in Control Tower (I had the error on ap-southeast-4 specifically)
Review the Lambda logs for errors in sra.process_enable_ebs_encryption_by_default
Expected behavior
EBS Encryption by Default to be enabled in non default regions.
Deployment Environment (please complete the following information)
Control Tower with Cloudformation Deployment
Additional context
I was able to temporarily resolve the issue by hard coding a regional sts endpoint. Understand this isnt scaleable and will only be a quick and dirty solution for my environment. sts_client: STSClient = session.client("sts", config=BOTO3_CONFIG, region_name=STS_REGION_ENDPOINT, endpoint_url=f"https://sts.{STS_REGION_ENDPOINT}.amazonaws.com")
The text was updated successfully, but these errors were encountered:
Hey @deanillfeld ,
I was unable to duplicate this issue.
Have you encountered this issue for other standard non-default regions? ap-southeast-4 is an opt-in region and is not enabled by default, which may have something to do with the issue that you're encountering.
Community Note
Describe the bug
Enabling EBS Default Encryption in a non default region fails due to a V1 STS token being obtained from the global endpoint. (Reference: https://repost.aws/knowledge-center/iam-validate-access-credentials).
Line 80: sts_client: STSClient = session.client("sts", config=BOTO3_CONFIG)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
EBS Encryption by Default to be enabled in non default regions.
Deployment Environment (please complete the following information)
Additional context
I was able to temporarily resolve the issue by hard coding a regional sts endpoint. Understand this isnt scaleable and will only be a quick and dirty solution for my environment.
sts_client: STSClient = session.client("sts", config=BOTO3_CONFIG, region_name=STS_REGION_ENDPOINT, endpoint_url=f"https://sts.{STS_REGION_ENDPOINT}.amazonaws.com")
The text was updated successfully, but these errors were encountered: