Error: Your query returned no results when deploying ECS deploy runner to new account. #357
-
A customer asked:
How can I resolve this error? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You need to ensure the AMIs are shared with the new account, as well as the KMS key. This is managed through packer at AMI build time. If you followed the steps in the guide, then the KMS key should already be accessible by the new account when you applied account-baseline in the shared account, so the last step is to update each of the build_*.sh scripts in the shared/REGION/_regional/amis folder to include the new account ID in the ami_account_ids list: https://github.com/gruntwork-io/terraform-aws-service-catalog/blob/master/examples/for-production/infrastructure-live/shared/us-west-2/_regional/amis/build_bastion_host.sh#L28 Once the script is updated, you have two options for rolling this out: |
Beta Was this translation helpful? Give feedback.
-
Credit for this solution goes to @yorinasub17 |
Beta Was this translation helpful? Give feedback.
You need to ensure the AMIs are shared with the new account, as well as the KMS key. This is managed through packer at AMI build time. If you followed the steps in the guide, then the KMS key should already be accessible by the new account when you applied account-baseline in the shared account, so the last step is to update each of the build_*.sh scripts in the shared/REGION/_regional/amis folder to include the new account ID in the ami_account_ids list: https://github.com/gruntwork-io/terraform-aws-service-catalog/blob/master/examples/for-production/infrastructure-live/shared/us-west-2/_regional/amis/build_bastion_host.sh#L28
Once the script is updated, you have two options for rolling …