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

Process attachment payload message for EBS attach #3911

Merged
merged 5 commits into from
Sep 19, 2023
Merged

Conversation

xxx0624
Copy link
Contributor

@xxx0624 xxx0624 commented Sep 15, 2023

Summary

This PR is to update the current attachment payload process to support the AttachmentType for EBS attach which will use AmazonElasticBlockStorage as the attachment type specifically. AmazonElasticBlockStorage is the only one we support so far and all other attachment types will be ignored.

Implementation details

  • A new field AttachmentType is added to the existing ResourceAttachment.
  • The attachment payload responder will support to parse the AttachmentType from ACS and verify all required properties are present.

Testing

New tests cover the changes: yes

Description for the changelog

Feature - support AttachmentType for the attachment payload for EBS Attach

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@xxx0624 xxx0624 requested a review from a team as a code owner September 15, 2023 07:52
@xxx0624 xxx0624 changed the title [WIP] Process attachment payload message for EBS attach Process attachment payload message for EBS attach Sep 15, 2023
Copy link
Member

@fierlion fierlion left a comment

Choose a reason for hiding this comment

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

Good level of detail here in both code and in comments

@xxx0624 xxx0624 merged commit 86a4d75 into aws:dev Sep 19, 2023
36 checks passed
xxx0624 added a commit to xxx0624/amazon-ecs-agent that referenced this pull request Sep 20, 2023
* Process attachment payload message for EBS attach

* Add one more test case

* Update agent

* Update amazonebs to AmazonElasticBlockStorage

* Save attachmentType
xxx0624 added a commit to xxx0624/amazon-ecs-agent that referenced this pull request Sep 20, 2023
* Process attachment payload message for EBS attach

* Add one more test case

* Update agent

* Update amazonebs to AmazonElasticBlockStorage

* Save attachmentType
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.

5 participants