-
Notifications
You must be signed in to change notification settings - Fork 224
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
Add multiple options to make a connection with ECS Cluster. #1759
Add multiple options to make a connection with ECS Cluster. #1759
Conversation
I'm sorry, I actually commented the wrong PR. this comment was for #1762.
|
Basically it looks good. |
Thanks for your reply. |
Thank you for creating this PR. Since this PR change will change the behavior when system properties are not set, it would be a good idea to add a test to see if the expected authentication method ( IMO, I understand that there is basically no problem since the behavior is the same as before in cases where system property ( I have one request. I would appreciate it if you leave a note on this page describing the new behavior, as in the PR, and please mention that it is supported in v0.10.5 and above. |
modify document for mentioning new credential can be used in a new version
4cfa299
to
e47c6fa
Compare
@szyn
I agreed with the idea to add integration test for confirming that digdag server can connect with ECS with the expected way. If possible, If possible, I'll try to add the test.
I added the explanation on this commit e47c6fa, so please review this if you are available. By the way, We can choose credentials provided by DefaultAWSCredentialsProviderChain other than AWS access key when connecting with S3 temporal storage because similar method has already been implemented in S3StorageFactory and TemporalProjectArchiveStorage uses the function. Thus, the description I added on this PR can be applied to S3 access key and secret, so I think it'll also be better to mention about that. How do you think about my idea? |
Sounds good, thank you.
Thank you for sharing your opinion. That's a good point 👍 I agree with mentioning it. |
What I did
I added more options to access to ECS Cluster.
There is currently only one option to make a connection with ECS Cluster which is the way to connect with AWS AccessKeyId and SecretAccessKey.
I made a change that DefaultAWSCredentialsProviderChain is called if agent.command_executor.ecs.<name>.access_key_id is not defined, and then the other types of credentials such as environment variables or Instance Profile are used.
I referred to the process of authorizing S3 Bucket and made the implementation closer to it as possible.
What I confirmed
I confirmed the items below.
./gradlew check
is succeededThis is the first PR I create on this repository so I'm sorry in advance if there is any inconvenience.