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

[New Resource]: aws_controltower_landing_zone #34595

Merged
merged 45 commits into from
Feb 5, 2024

Conversation

bschaatsbergen
Copy link
Member

@bschaatsbergen bschaatsbergen commented Nov 28, 2023

Description

  • Introduces a new resource: aws_controltower_landing_zone

Relations

Closes #34557

References

Output from Acceptance Testing

% make testacc TESTS=TestAccControlTowerLandingZone_ PKG=controltower

...

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 size/M Managed by automation to categorize the size of a PR. service/controltower Issues and PRs that pertain to the controltower service. labels Nov 28, 2023
@terraform-aws-provider terraform-aws-provider bot added needs-triage Waiting for first response or review from a maintainer. external-maintainer Contribution from a trusted external contributor. labels Nov 28, 2023
@bschaatsbergen bschaatsbergen force-pushed the f/controltower-landingzone branch from 19a7cc3 to 208ac08 Compare November 28, 2023 21:48
@bschaatsbergen bschaatsbergen changed the title feat: implement aws_controltower_landing_zone [New Resource]: implement aws_controltower_landing_zone Nov 28, 2023
@bschaatsbergen bschaatsbergen removed the needs-triage Waiting for first response or review from a maintainer. label Nov 28, 2023
@bschaatsbergen bschaatsbergen changed the title [New Resource]: implement aws_controltower_landing_zone [New Resource]: aws_controltower_landing_zone Nov 28, 2023
@bschaatsbergen bschaatsbergen marked this pull request as ready for review December 8, 2023 16:13
@ewbankkit ewbankkit added the new-resource Introduces a new resource. label Jan 6, 2024
@ewbankkit ewbankkit self-assigned this Jan 6, 2024
@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Jan 6, 2024
@ewbankkit
Copy link
Contributor

@bschaatsbergen @tylersouthwick I have decomposed manifest into a configuration block based on the example in https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch.html and information in https://docs.aws.amazon.com/controltower/latest/userguide/lz-apis-cfn-launch.html. For example

resource "aws_controltower_landing_zone" "example" {
  manifest {
    governed_regions = ["us-west-2"]

    centralized_logging {
      configurations {
        access_logging_bucket {
          retention_days = 3650
        }
        logging_bucket {
          retention_days = 365
        }
      }
    }

    organization_structure {
      sandbox {
        name = "Sandbox"
      }
      security {
        name = "Security"
      }
    }
  }

  version = "3.2"
}

I successfully imported (via terraform import) my test landing zone and updated tags as expected.
I can't run the acceptance tests as I don't have a clean account I can create/destroy landing zones in -- are you able to test?
If not we can release as "best-effort" and ask for community help in testing/finding bugs.

@bschaatsbergen
Copy link
Member Author

bschaatsbergen commented Jan 28, 2024

Update on this PR: @ewbankkit, @tylersouthwick and I are having a conversation about this resource next week to finalize this and ship it.

@ewbankkit ewbankkit merged commit bdb787a into hashicorp:main Feb 5, 2024
43 checks passed
@github-actions github-actions bot added this to the v5.36.0 milestone Feb 5, 2024
@bschaatsbergen bschaatsbergen deleted the f/controltower-landingzone branch February 5, 2024 13:01
Copy link

github-actions bot commented Feb 8, 2024

This functionality has been released in v5.36.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!

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 Mar 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
external-maintainer Contribution from a trusted external contributor. new-resource Introduces a new resource. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/controltower Issues and PRs that pertain to the controltower service. size/M Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New Resource]: aws_controltower_landing_zone
3 participants