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

Reuse AWS credentials assumed from Role #9

Merged
merged 3 commits into from
Oct 19, 2016

Conversation

k0kubun
Copy link
Collaborator

@k0kubun k0kubun commented Oct 19, 2016

Problem

When we restarted ecs-agent, barbeque raised Aws::Errors::MissingCredentialsError.
https://gist.github.com/k0kubun/ad2f2b15c90d13adec02aa6e41b4de54

Related to aws/aws-sdk-ruby#1301

Changes

I changed MessageEnqueuingService, MessageRetryingService and ExecutionLog to reuse credentials. Since barbeque stops fetching AWS credentials every time, it'll be easier to restart ecs-agent.

👓 @cookpad/dev-infra

@eagletmt
Copy link
Member

LGTM.

To be more precise, there's many possible situations where the aws-sdk fails to retrieve credentails from providers other than ecs-agent restarts.

@k0kubun k0kubun merged commit 4aa3a19 into cookpad:master Oct 19, 2016
@k0kubun k0kubun deleted the reuse-credentials branch October 19, 2016 06:40
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.

None yet

2 participants