-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
F organizations policies #31546
F organizations policies #31546
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Acceptance test output: % make testacc TESTARGS='-run=TestAccOrganizations_serial/Policy$$' PKG=organizations ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/organizations/... -v -count 1 -parallel 20 -run=TestAccOrganizations_serial/Policy$ -timeout 180m === RUN TestAccOrganizations_serial === PAUSE TestAccOrganizations_serial === CONT TestAccOrganizations_serial === RUN TestAccOrganizations_serial/Policy === RUN TestAccOrganizations_serial/Policy/disappears === RUN TestAccOrganizations_serial/Policy/Type_AI_OPT_OUT === RUN TestAccOrganizations_serial/Policy/Type_Backup === RUN TestAccOrganizations_serial/Policy/Type_Tag === RUN TestAccOrganizations_serial/Policy/basic === RUN TestAccOrganizations_serial/Policy/concurrent === RUN TestAccOrganizations_serial/Policy/Description === RUN TestAccOrganizations_serial/Policy/SkipDestroy === RUN TestAccOrganizations_serial/Policy/Tags === RUN TestAccOrganizations_serial/Policy/Type_SCP === RUN TestAccOrganizations_serial/Policy/ImportAwsManagedPolicy --- PASS: TestAccOrganizations_serial (348.14s) --- PASS: TestAccOrganizations_serial/Policy (348.14s) --- PASS: TestAccOrganizations_serial/Policy/disappears (22.16s) --- PASS: TestAccOrganizations_serial/Policy/Type_AI_OPT_OUT (23.33s) --- PASS: TestAccOrganizations_serial/Policy/Type_Backup (24.94s) --- PASS: TestAccOrganizations_serial/Policy/Type_Tag (26.35s) --- PASS: TestAccOrganizations_serial/Policy/basic (39.41s) --- PASS: TestAccOrganizations_serial/Policy/concurrent (37.07s) --- PASS: TestAccOrganizations_serial/Policy/Description (39.95s) --- PASS: TestAccOrganizations_serial/Policy/SkipDestroy (20.15s) --- PASS: TestAccOrganizations_serial/Policy/Tags (54.49s) --- PASS: TestAccOrganizations_serial/Policy/Type_SCP (36.65s) --- PASS: TestAccOrganizations_serial/Policy/ImportAwsManagedPolicy (23.64s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/organizations 355.058s
Acceptance test output: % make testacc TESTARGS='-run=TestAccOrganizations_serial/PolicyDataSource$$' PKG=organizations ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/organizations/... -v -count 1 -parallel 20 -run=TestAccOrganizations_serial/PolicyDataSource$ -timeout 180m === RUN TestAccOrganizations_serial === PAUSE TestAccOrganizations_serial === CONT TestAccOrganizations_serial === RUN TestAccOrganizations_serial/PolicyDataSource === RUN TestAccOrganizations_serial/PolicyDataSource/UnattachedPolicy --- PASS: TestAccOrganizations_serial (30.86s) --- PASS: TestAccOrganizations_serial/PolicyDataSource (30.86s) --- PASS: TestAccOrganizations_serial/PolicyDataSource/UnattachedPolicy (30.86s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/organizations 39.816s
Acceptance test output: % make testacc TESTARGS='-run=TestAccOrganizationsPoliciesDataSource_' PKG=organizations ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/organizations/... -v -count 1 -parallel 20 -run=TestAccOrganizationsPoliciesDataSource_ -timeout 180m === RUN TestAccOrganizationsPoliciesDataSource_basic --- PASS: TestAccOrganizationsPoliciesDataSource_basic (18.56s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/organizations 24.302s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccOrganizationsPoliciesDataSource_' PKG=organizations
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/organizations/... -v -count 1 -parallel 20 -run=TestAccOrganizationsPoliciesDataSource_ -timeout 180m
=== RUN TestAccOrganizationsPoliciesDataSource_basic
--- PASS: TestAccOrganizationsPoliciesDataSource_basic (18.56s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/organizations 24.302s
% make testacc TESTARGS='-run=TestAccOrganizations_serial/PolicyDataSource$$' PKG=organizations
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/organizations/... -v -count 1 -parallel 20 -run=TestAccOrganizations_serial/PolicyDataSource$ -timeout 180m
=== RUN TestAccOrganizations_serial
=== PAUSE TestAccOrganizations_serial
=== CONT TestAccOrganizations_serial
=== RUN TestAccOrganizations_serial/PolicyDataSource
=== RUN TestAccOrganizations_serial/PolicyDataSource/UnattachedPolicy
--- PASS: TestAccOrganizations_serial (30.86s)
--- PASS: TestAccOrganizations_serial/PolicyDataSource (30.86s)
--- PASS: TestAccOrganizations_serial/PolicyDataSource/UnattachedPolicy (30.86s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/organizations 39.816s
% make testacc TESTARGS='-run=TestAccOrganizations_serial/Policy$$' PKG=organizations
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/organizations/... -v -count 1 -parallel 20 -run=TestAccOrganizations_serial/Policy$ -timeout 180m
=== RUN TestAccOrganizations_serial
=== PAUSE TestAccOrganizations_serial
=== CONT TestAccOrganizations_serial
=== RUN TestAccOrganizations_serial/Policy
=== RUN TestAccOrganizations_serial/Policy/disappears
=== RUN TestAccOrganizations_serial/Policy/Type_AI_OPT_OUT
=== RUN TestAccOrganizations_serial/Policy/Type_Backup
=== RUN TestAccOrganizations_serial/Policy/Type_Tag
=== RUN TestAccOrganizations_serial/Policy/basic
=== RUN TestAccOrganizations_serial/Policy/concurrent
=== RUN TestAccOrganizations_serial/Policy/Description
=== RUN TestAccOrganizations_serial/Policy/SkipDestroy
=== RUN TestAccOrganizations_serial/Policy/Tags
=== RUN TestAccOrganizations_serial/Policy/Type_SCP
=== RUN TestAccOrganizations_serial/Policy/ImportAwsManagedPolicy
--- PASS: TestAccOrganizations_serial (348.14s)
--- PASS: TestAccOrganizations_serial/Policy (348.14s)
--- PASS: TestAccOrganizations_serial/Policy/disappears (22.16s)
--- PASS: TestAccOrganizations_serial/Policy/Type_AI_OPT_OUT (23.33s)
--- PASS: TestAccOrganizations_serial/Policy/Type_Backup (24.94s)
--- PASS: TestAccOrganizations_serial/Policy/Type_Tag (26.35s)
--- PASS: TestAccOrganizations_serial/Policy/basic (39.41s)
--- PASS: TestAccOrganizations_serial/Policy/concurrent (37.07s)
--- PASS: TestAccOrganizations_serial/Policy/Description (39.95s)
--- PASS: TestAccOrganizations_serial/Policy/SkipDestroy (20.15s)
--- PASS: TestAccOrganizations_serial/Policy/Tags (54.49s)
--- PASS: TestAccOrganizations_serial/Policy/Type_SCP (36.65s)
--- PASS: TestAccOrganizations_serial/Policy/ImportAwsManagedPolicy (23.64s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/organizations 355.058s
@danielw-aws Thanks for the contribution 🎉 👏. data "aws_organizations_policies" "example" {
filter = "SERVICE_CONTROL_POLICY"
}
data "aws_organizations_policy" "example" {
for_each = toset(data.aws_organizations_policies.example.ids)
policy_id = each.value
} |
This functionality has been released in v5.4.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! |
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. |
Description
Added a data source, tests, and webdocs for a wrapper on Organizations ListPolicies API
Relations
Closes #31545
References
https://docs.aws.amazon.com/organizations/latest/APIReference/API_ListPolicies.html
Output from Acceptance Testing