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

Adds the ability to use IAM roles from EC2 instances for credentials #21

Merged
merged 1 commit into from
Dec 22, 2015

Conversation

lobsterdore
Copy link
Contributor

When using GOCD in AWS it's best practice to avoid keys and use an IAM role attached to the machine itself, this change will enable that functionality.

@@ -14,5 +14,5 @@
<span class="form_error" ng-show="GOINPUTNAME[Destination].$error.server">{{ GOINPUTNAME[Destination].$error.server }}</span>
</div>
<div class="form_item_block">
<p class="required">Make sure AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID and GO_ARTIFACTS_S3_BUCKET environment variables are present with appropriate values on any of pipeline / Go Environments / on all agent machines. </p>
<p class="required">Make sure either AWS_USE_IAM_ROLE or AWS_SECRET_ACCESS_KEY + AWS_ACCESS_KEY_ID, GO_ARTIFACTS_S3_BUCKET and GO_ARTIFACTS_S3_BUCKET environment variables are present with appropriate values on any of pipeline / Go Environments / on all agent machines. </p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GO_ARTIFACTS_S3_BUCKET is repeating on both the template files.

@ashwanthkumar
Copy link
Member

Thanks so much for doing this.

LGTM cc: @manojlds @Sriram-R

@lobsterdore
Copy link
Contributor Author

@ashwanthkumar No worries at all, I've fixed that template issue.

@manojlds
Copy link
Member

LGTM. Open source is beneficial for everyone :)

Let's make sure docs are updated too? https://github.com/ind9/gocd-s3-artifacts/tree/gh-pages

@lobsterdore
Copy link
Contributor Author

@manojlds do you want me to open a separate pr for the docs?

@manojlds
Copy link
Member

@lobsterdore - if you can, then yes, please! If not, we will take care of it. Just do confirm if you want take a stab at it :)

@lobsterdore
Copy link
Contributor Author

@manojlds Rebased and updated, I will pop in a PR for the docs hopefully tomorrow.

@lobsterdore
Copy link
Contributor Author

Documentation PR -> #22

@ashwanthkumar
Copy link
Member

@manojlds I'm merging this PR. Please have a look at #22.

ashwanthkumar added a commit that referenced this pull request Dec 22, 2015
Adds the ability to use IAM roles from EC2 instances for credentials
@ashwanthkumar ashwanthkumar merged commit eeb5a92 into indix:master Dec 22, 2015
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

Successfully merging this pull request may close these issues.

3 participants