Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow up to improve how notification-api determines the aws account number #258

Open
terrazoon opened this issue May 4, 2023 · 3 comments
Assignees

Comments

@terrazoon
Copy link
Contributor

an idea for an enhancement to address the python side:

You should be able to use caller identity to add the AWS account ID into bind/outputs.tf

The values in outputs.tf get added to the bound service's credentials JSON, so you can parse and use them from within app/cloudfoundry_config.py

@terrazoon terrazoon self-assigned this May 4, 2023
@terrazoon
Copy link
Contributor Author

This was feed from Ryan for this review: GSA/ttsnotify-brokerpak-sms#4

It didn't fit into scope for sprint Ibis.

@terrazoon
Copy link
Contributor Author

terrazoon commented May 15, 2023

If I attempt to modify my terraform as recommended by Ryan (adding a caller identity and output), I get the following error message. I have seen this error message before when I tried to add a LifecycleConfiguration to the csv bucket.

It seems like somewhere at the boundary between regular AWS and cloud.gov, this problem with GetMetadata is preventing the ability to make some modifications. If it were a permissions issue, maybe we could add GetMetadata in the brokerpak, but this "host is down" message makes it look like it's something else.


│ Error: configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.

│ Please see https://registry.terraform.io/providers/hashicorp/aws
│ for more information about providing credentials.

│ AWS Error: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, exceeded maximum number of attempts, 3, request send failed, Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": dial tcp 169.254.169.254:80: connect: host is down

The story requires terraform changes so I'm blocked.

@tdlowden
Copy link
Member

Moving into the backlog for later resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔜 Backlog
Development

No branches or pull requests

3 participants