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

Implement AWS SSM Contacts resources #30667

Merged
merged 21 commits into from
Apr 21, 2023

Conversation

mchen32
Copy link
Contributor

@mchen32 mchen32 commented Apr 12, 2023

Description

Support the following AWS Incident Manager Contacts resources and data sources: Contact, Contact Channel, Plan.

Relations

Relates #22687 - Add SSM-Incidents resources to provider

References

Output from Acceptance Testing

% make testacc TESTS=TestAccSSMContacts_serial PKG=ssmcontacts
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ssmcontacts/... -v -count 1 -parallel 20 -run='TestAccSSMContacts_serial'  -timeout 180m
=== RUN   TestAccSSMContacts_serial
=== PAUSE TestAccSSMContacts_serial
=== CONT  TestAccSSMContacts_serial
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests/updateTags
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests/updateType
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests/basic
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests/disappears
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests/updateAlias
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests/updateDisplayName
=== RUN   TestAccSSMContacts_serial/Contact_Data_Source_Tests
=== RUN   TestAccSSMContacts_serial/Contact_Data_Source_Tests/basic
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/deliveryAddress
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/disappears
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/name
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/type
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/basic
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/contactId
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Data_Source_Tests
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Data_Source_Tests/basic
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/updateTargets
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/basic
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/disappears
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/updateChannelTargetInfo
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/updateContactId
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/updateContactTargetInfo
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/updateDurationInMinutes
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/updateStages
=== RUN   TestAccSSMContacts_serial/Plan_Data_Source_Tests
=== RUN   TestAccSSMContacts_serial/Plan_Data_Source_Tests/basic
=== RUN   TestAccSSMContacts_serial/Plan_Data_Source_Tests/channelTargetInfo
--- PASS: TestAccSSMContacts_serial (8521.74s)
    --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests (2107.51s)
        --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests/updateTags (418.95s)
        --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests/updateType (346.56s)
        --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests/basic (323.67s)
        --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests/disappears (324.48s)
        --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests/updateAlias (347.78s)
        --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests/updateDisplayName (346.07s)
    --- PASS: TestAccSSMContacts_serial/Contact_Data_Source_Tests (328.37s)
        --- PASS: TestAccSSMContacts_serial/Contact_Data_Source_Tests/basic (328.37s)
    --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests (2141.40s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/deliveryAddress (347.71s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/disappears (325.66s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/name (409.47s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/type (367.72s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/basic (340.40s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/contactId (350.44s)
    --- PASS: TestAccSSMContacts_serial/Contact_Channel_Data_Source_Tests (332.06s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Data_Source_Tests/basic (332.06s)
    --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests (2953.66s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/updateTargets (427.08s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/basic (342.66s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/disappears (302.27s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/updateChannelTargetInfo (303.03s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/updateContactId (364.08s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/updateContactTargetInfo (348.22s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/updateDurationInMinutes (468.90s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/updateStages (397.41s)
    --- PASS: TestAccSSMContacts_serial/Plan_Data_Source_Tests (658.74s)
        --- PASS: TestAccSSMContacts_serial/Plan_Data_Source_Tests/basic (328.93s)
        --- PASS: TestAccSSMContacts_serial/Plan_Data_Source_Tests/channelTargetInfo (329.81s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ssmcontacts	8524.943s

@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. generators Relates to code generators. provider Pertains to the provider itself, rather than any interaction with AWS. service/ssmcontacts Issues and PRs that pertain to the ssmcontacts service. tags Pertains to resource tagging. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/XL Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. labels Apr 12, 2023
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @mchen32 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@mchen32 mchen32 marked this pull request as ready for review April 12, 2023 06:42
@mchen32 mchen32 changed the title [WIP] Implement AWS SSM Contacts resources Implement AWS SSM Contacts resources Apr 12, 2023
@breathingdust breathingdust added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 12, 2023
@ewbankkit ewbankkit added the partner Contribution from a partner. label Apr 17, 2023
@ewbankkit ewbankkit added the new-data-source Introduces a new data source. label Apr 21, 2023
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

% ACCTEST_TIMEOUT=360m make testacc TESTARGS='-run=TestAccSSMContacts_serial' PKG=ssmcontacts
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ssmcontacts/... -v -count 1 -parallel 20  -run=TestAccSSMContacts_serial -timeout 360m
=== RUN   TestAccSSMContacts_serial
=== PAUSE TestAccSSMContacts_serial
=== CONT  TestAccSSMContacts_serial
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests/disappears
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests/updateAlias
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests/updateDisplayName
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests/updateTags
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests/updateType
=== RUN   TestAccSSMContacts_serial/Contact_Resource_Tests/basic
=== RUN   TestAccSSMContacts_serial/Contact_Data_Source_Tests
=== RUN   TestAccSSMContacts_serial/Contact_Data_Source_Tests/basic
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/contactId
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/deliveryAddress
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/disappears
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/name
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/type
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/basic
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Data_Source_Tests
=== RUN   TestAccSSMContacts_serial/Contact_Channel_Data_Source_Tests/basic
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/updateChannelTargetInfo
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/updateContactId
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/updateContactTargetInfo
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/updateDurationInMinutes
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/updateStages
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/updateTargets
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/basic
=== RUN   TestAccSSMContacts_serial/Plan_Resource_Tests/disappears
=== RUN   TestAccSSMContacts_serial/Plan_Data_Source_Tests
=== RUN   TestAccSSMContacts_serial/Plan_Data_Source_Tests/basic
=== RUN   TestAccSSMContacts_serial/Plan_Data_Source_Tests/channelTargetInfo
--- PASS: TestAccSSMContacts_serial (8322.77s)
    --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests (2259.46s)
        --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests/disappears (322.22s)
        --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests/updateAlias (337.73s)
        --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests/updateDisplayName (517.53s)
        --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests/updateTags (405.94s)
        --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests/updateType (344.63s)
        --- PASS: TestAccSSMContacts_serial/Contact_Resource_Tests/basic (331.41s)
    --- PASS: TestAccSSMContacts_serial/Contact_Data_Source_Tests (320.08s)
        --- PASS: TestAccSSMContacts_serial/Contact_Data_Source_Tests/basic (320.08s)
    --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests (2015.53s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/contactId (338.50s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/deliveryAddress (336.35s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/disappears (319.62s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/name (339.21s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/type (350.57s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Resource_Tests/basic (331.28s)
    --- PASS: TestAccSSMContacts_serial/Contact_Channel_Data_Source_Tests (319.90s)
        --- PASS: TestAccSSMContacts_serial/Contact_Channel_Data_Source_Tests/basic (319.90s)
    --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests (2766.97s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/updateChannelTargetInfo (338.05s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/updateContactId (338.68s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/updateContactTargetInfo (336.85s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/updateDurationInMinutes (336.73s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/updateStages (351.85s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/updateTargets (350.54s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/basic (333.03s)
        --- PASS: TestAccSSMContacts_serial/Plan_Resource_Tests/disappears (381.24s)
    --- PASS: TestAccSSMContacts_serial/Plan_Data_Source_Tests (640.83s)
        --- PASS: TestAccSSMContacts_serial/Plan_Data_Source_Tests/basic (319.96s)
        --- PASS: TestAccSSMContacts_serial/Plan_Data_Source_Tests/channelTargetInfo (320.87s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ssmcontacts	8328.846s

@ewbankkit
Copy link
Contributor

@mchen32 Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit e7ab03f into hashicorp:main Apr 21, 2023
@github-actions github-actions bot added this to the v4.65.0 milestone Apr 21, 2023
@github-actions
Copy link

This functionality has been released in v4.65.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. generators Relates to code generators. new-data-source Introduces a new data source. new-resource Introduces a new resource. partner Contribution from a partner. provider Pertains to the provider itself, rather than any interaction with AWS. service/ssmcontacts Issues and PRs that pertain to the ssmcontacts service. size/XL Managed by automation to categorize the size of a PR. tags Pertains to resource tagging. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants