如何在我选择的区域中配置 automate_aws_accounts_creation_sso_users_assignment.yaml 到 运行?
How to configure automate_aws_accounts_creation_sso_users_assignment.yaml to run in a region of my choice?
我正在关注 https://aws.amazon.com/de/blogs/security/how-to-automate-aws-account-creation-with-sso-user-assignment/ 以自动创建 SSO 帐户。它说:
This solution is configured to be deployed in the North Virginia Region (us-east-1). But you can change the CloudFormation template to run in any Region that supports all the services required in the solution.
所以我创建了堆栈 https://awsiammedia.s3.amazonaws.com/public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/automate_aws_accounts_creation_sso_users_assignment.yaml 并将顶部面板中的区域从 us-east-1 更改为 eu-central-1。
创建堆栈失败并出现以下事件:
Logical ID: CreateAccountAssignmentLambda
Status: Create_FAILED
Status reason: Resource handler returned message: "Error occurred while GetObject. S3 Error Code: PermanentRedirect. S3 Error Message: The bucket is in this region: us-east-1. Please use this region to retry the request (Service: Lambda, Status Code: 400, Request ID: 7fd58877-67b5-46b6-ac60-693f1edff8df, Extended Request ID: null)" (RequestToken: b49cb70f-2820-2c65-76c2-1a0b2776cd94, HandlerErrorCode: InvalidRequest)
但是没有提到us-east-1
或Virginia
。如何在另一个区域将 CloudFormation 模板更改为 运行?
好像问题出在 S3Bucket: awsiammedia
。
我会将您需要的资产从 awsiammedia
复制到新区域中的一个存储桶,并在您找到 awsiammedia
的位置使用该存储桶名称。所以,'configure' 不是一个好的描述。
CreateAccountAssignmentLambda:
Type: AWS::Lambda::Function
Properties:
Code:
--> S3Bucket: awsiammedia
S3Key: public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/create_account_assignment_lambda.zip
我正在关注 https://aws.amazon.com/de/blogs/security/how-to-automate-aws-account-creation-with-sso-user-assignment/ 以自动创建 SSO 帐户。它说:
This solution is configured to be deployed in the North Virginia Region (us-east-1). But you can change the CloudFormation template to run in any Region that supports all the services required in the solution.
所以我创建了堆栈 https://awsiammedia.s3.amazonaws.com/public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/automate_aws_accounts_creation_sso_users_assignment.yaml 并将顶部面板中的区域从 us-east-1 更改为 eu-central-1。
创建堆栈失败并出现以下事件:
Logical ID: CreateAccountAssignmentLambda
Status: Create_FAILED
Status reason: Resource handler returned message: "Error occurred while GetObject. S3 Error Code: PermanentRedirect. S3 Error Message: The bucket is in this region: us-east-1. Please use this region to retry the request (Service: Lambda, Status Code: 400, Request ID: 7fd58877-67b5-46b6-ac60-693f1edff8df, Extended Request ID: null)" (RequestToken: b49cb70f-2820-2c65-76c2-1a0b2776cd94, HandlerErrorCode: InvalidRequest)
但是没有提到us-east-1
或Virginia
。如何在另一个区域将 CloudFormation 模板更改为 运行?
好像问题出在 S3Bucket: awsiammedia
。
我会将您需要的资产从 awsiammedia
复制到新区域中的一个存储桶,并在您找到 awsiammedia
的位置使用该存储桶名称。所以,'configure' 不是一个好的描述。
CreateAccountAssignmentLambda:
Type: AWS::Lambda::Function
Properties:
Code:
--> S3Bucket: awsiammedia
S3Key: public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/create_account_assignment_lambda.zip