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

fix: main.ts does not use dot-env #7

Closed
drernie opened this issue Dec 7, 2023 · 5 comments
Closed

fix: main.ts does not use dot-env #7

drernie opened this issue Dec 7, 2023 · 5 comments

Comments

@drernie
Copy link
Member

drernie commented Dec 7, 2023

For some reason it always thinks CDK_DEFAULT_REGION = us-west-2
Though .env is and .aws/credentials are us-east-1
(and it picks up the new ACCOUNT_ID correctly)

@drernie drernie changed the title fix: main.ts does not use doting fix: main.ts does not use dot-env Dec 7, 2023
@drernie
Copy link
Member Author

drernie commented Dec 7, 2023

Bizarrely, even if I hard code the stack to create everything in us-east-1, 'npx projen deploy' still builds the stack ITSELF in us-west-2.
Restarting CLI to see if that helps...

@drernie
Copy link
Member Author

drernie commented Dec 7, 2023

source .env seems to help

@drernie
Copy link
Member Author

drernie commented Dec 7, 2023

Weird

current credentials could not be used to assume 'arn:aws:iam::712023778557:role/cdk-hnb659fds-deploy-role-712023778557-us-east-1', but are for the right account. Proceeding anyway.
current credentials could not be used to assume 'arn:aws:iam::712023778557:role/cdk-hnb659fds-deploy-role-712023778557-us-east-1', but are for the right account. Proceeding anyway.
current credentials could not be used to assume 'arn:aws:iam::712023778557:role/cdk-hnb659fds-deploy-role-712023778557-us-east-1', but are for the right account. Proceeding anyway.

@drernie
Copy link
Member Author

drernie commented Dec 7, 2023

Did not have bootstrap. Hmm.

 ⏳  Bootstrapping environment aws://712023778557/us-east-1...
Trusted accounts for deployment: (none)
Trusted accounts for lookup: (none)
Using default execution policy of 'arn:aws:iam::aws:policy/AdministratorAccess'. Pass '--cloudformation-execution-policies' to customize.

@drernie
Copy link
Member Author

drernie commented Dec 7, 2023

Ah. This seems an artifact of CDK Bootstrap. Added to README.

@drernie drernie closed this as completed Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant