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

Issue #45: get aws partition based on region #74

Merged
merged 1 commit into from
Aug 29, 2017

Conversation

zhan849
Copy link

@zhan849 zhan849 commented Aug 28, 2017

Fixes #45

When creating IAM role / bucket policy, we need to dynamically generate policy string based on aws partition.

Tested install and upgrade and they worked

@lorengordon
Copy link

lorengordon commented Aug 28, 2017

fyi, just found another way to get the partition from ec2 metadata:

$ curl http://169.254.169.254/latest/meta-data/services/partition
aws-us-gov
$ curl http://169.254.169.254/latest/meta-data/services/partition
aws

Might be more reliable over time than hard-coding those properties.

@zhan849
Copy link
Author

zhan849 commented Aug 28, 2017

@lorengordon this is awesome! But we have a problem as when user install / upgrade / uninstall cluster from local computer, they don't have access to cloud metadata service so we cannot get it dynamically from their metadata server

@zhan849 zhan849 self-assigned this Aug 28, 2017
@zhan849 zhan849 added this to the M10 milestone Aug 28, 2017
@lorengordon
Copy link

Ahh, yes, if the arn is generated from the user environment rather than the cluster environment, that won't work so well. :(

@zhan849 zhan849 merged commit d0034f9 into argoproj:master Aug 29, 2017
icecoffee531 pushed a commit to icecoffee531/argo-workflows that referenced this pull request Jan 5, 2022
Had to use them as [[overrides]] and not directly as [[constraints]] because
argo still uses version v1.9.

Testing done:

1. Builds worked just fine.
2. Unit tests worked just fine.
3. Ran the controller and a couple of sensors. They worked too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants