- 最新
- 投票最多
- 评论最多
Hello.
Please mask the contents listed in "aws_access_key_id" and "aws_secret_access_key".
Did you restart CodeDeploy Agent after updating "codedeploy.onpremises.yml"?
Looking at the documentation, the configuration seems correct.
https://docs.aws.amazon.com/codedeploy/latest/userguide/register-on-premises-instance-iam-user-arn.html#register-on-premises-instance-iam-user-arn-4
Online guidance indicates you need at least a 5 line file as found below. Your reference file appears to be missing the initial line of "---" along with a region value. Please let us know if adding to your file per below resolves your issue or not.
Reference (found in earlier responses as well): https://docs.aws.amazon.com/codedeploy/latest/userguide/register-on-premises-instance-iam-user-arn.html#register-on-premises-instance-iam-user-arn-4
---
aws_access_key_id: secret-key-id
aws_secret_access_key: secret-access-key
iam_user_arn: iam-user-arn
region: supported-region
secret-key-id is the corresponding IAM user's secret key ID you noted in Step 1: Create an IAM user for the on-premises instance or Step 3: Get the IAM user credentials.
secret-access-key is the corresponding IAM user's secret access key you noted in Step 1: Create an IAM user for the on-premises instance or Step 3: Get the IAM user credentials.
iam-user-arn is the IAM user's ARN you noted earlier in Step 1: Create an IAM user for the on-premises instance.
supported-region is the identifier of a region supported by CodeDeploy where your CodeDeploy applications, deployment groups, and application revisions are located (for example, us-west-2). For a list of regions, see Region and endpoints in the AWS General Reference.
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 3 年前
- AWS 官方已更新 3 年前
Hi, yes, I restarted the codedeploy agent. Looking for some yml validator it suggested to remove the space between key and value, didn't worked. I keep seeing the same error.
https://www.yamllint.com/