简体   繁体   English

如何配置 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?

I'm following https://aws.amazon.com/de/blogs/security/how-to-automate-aws-account-creation-with-sso-user-assignment/ to automate sso account creation.我正在关注https://aws.amazon.com/de/blogs/security/how-to-automate-aws-account-creation-with-sso-user-assignment/以自动创建 sso 帐户。 It says:它说:

This solution is configured to be deployed in the North Virginia Region (us-east-1).此解决方案配置为部署在北弗吉尼亚区域 (us-east-1)。 But you can change the CloudFormation template to run in any Region that supports all the services required in the solution.但是您可以更改 CloudFormation 模板以在支持解决方案所需的所有服务的任何区域中运行。

So I create the stack https://awsiammedia.s3.amazonaws.com/public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/automate_aws_accounts_creation_sso_users_assignment.yaml and change the region in the top panel from us-east-1 to eu-central-1.所以我创建了堆栈https://awsiammedia.s3.amazonaws.com/public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/automate_aws_accounts_creation_sso_users_assignment.yaml并从我们更改顶部面板中的区域-east-1 到 eu-central-1。

The creation of the stack fails with the following event:堆栈的创建失败并出现以下事件:

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)

I have inspected the tamplate and the locations referenced therein:我已经检查了模板和其中引用的位置:
https://awsiammedia.s3.amazonaws.com/public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/automate_aws_accounts_creation_sso_users_assignment.yaml https://awsiammedia.s3.amazonaws.com/public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/automate_aws_accounts_creation_sso_users_assignment.yaml

https://awsiammedia.s3.amazonaws.com/public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/batchcreation_lambda.zip https://awsiammedia.s3.amazonaws.com/public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/batchcreation_lambda.zip

https://awsiammedia.s3.amazonaws.com/public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/account_create_lambda.zip https://awsiammedia.s3.amazonaws.com/public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/account_create_lambda.zip

https://awsiammedia.s3.amazonaws.com/public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/create_account_assignment_lambda.zip https://awsiammedia.s3.amazonaws.com/public/sample/952-Automate-AWS-Accounts-Creation-SSO-Users-Assignment/create_account_assignment_lambda.zip

But there is no mention of us-east-1 or Virginia .但是没有提到us-east-1Virginia How can I change the CloudFormation template to run in another region?如何更改 CloudFormation 模板以在其他区域运行?

It seems as though the problem is the S3Bucket: awsiammedia .似乎问题出在S3Bucket: awsiammedia

I would copy the assets you need from awsiammedia to a bucket in the new region, and use that bucket name where you find awsiammedia .我会将您需要的资产从awsiammedia复制到新区域中的存储桶,并在您找到awsiammedia的位置使用该存储桶名称。 So, 'configure' is not a good description.所以,“配置”不是一个好的描述。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以自动将组分配给 Azure AD 企业应用程序(特别是 AWS SSO)? - Is it possible to automate group assignment to Azure AD Enterprise Applications (specifically AWS SSO)? 如何为多个 AWS 账户配置 VSCode - How to configure VSCode for multiple AWS Accounts 将 AWS SSO 权限集分配给账户中的组 - Allocate AWS SSO Permission Set to Groups in Accounts 如何为 AWS SFTP 文件创建事件配置 Argo EventSource? - How to configure Argo EventSource for AWS SFTP file creation event? AWS SSO 和 CodeArtifact 登录需要手动更改区域的配置文件 - AWS SSO and CodeArtifact Login requires manual config file changes for Region 跨多个账户运行 aws cli 的方法 - Way to run aws cli across multiple accounts 如何使用 Boto3 查询 AWS SSO 用户的 UserId - How can I query UserId for AWS SSO Users using Boto3 AWS:在 Mac OS 终端中为多个账户配置 AWS 凭据的热点 - AWS: Hot to configure AWS credentials for multiple accounts in Mac OS terminal 在同一个区域创建的两个 AWS 账户是否共享同一个 VPC? - Do two AWS accounts created in the same region share the same VPC? 有没有办法通过 cloudformation/cdk 提供 aws sso 用户? - Is there a way to provision aws sso users via cloudformation/cdk?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM