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_config_organization_custom_policy #26989

Closed
ghimire opened this issue Sep 27, 2022 · 5 comments · Fixed by #28201
Closed

[New Resource]: aws_config_organization_custom_policy #26989

ghimire opened this issue Sep 27, 2022 · 5 comments · Fixed by #28201
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. service/configservice Issues and PRs that pertain to the configservice service.
Milestone

Comments

@ghimire
Copy link

ghimire commented Sep 27, 2022

Description

The https://docs.aws.amazon.com/config/latest/APIReference/API_PutOrganizationConfigRule.html API supports OrganizationCustomPolicyRuleMetadata which allows setting AWS Config Custom Policy as AWS Cloudformation guard policy text. This feature is available with the aws_config_config_rule but is not available for the aws_config_organisation_*.

Requested Resource(s) and/or Data Source(s)

  • aws_config_organization_custom_policy

Potential Terraform Configuration

resource "aws_config_organization_custom_policy" "example-organisation-config-rule" {
	name = "example-organisation-config-rule-name"

	organisation_config_rule_trigger_types = ["ConfigurationItemChangeNotification"]
	maximum_execution_frequency = "Twelve_Hours"

	policy_runtime = "guard-2.x.x"
	policy_text = << EOF
	rule tableisactive when
	resourceType == "AWS::DynamoDB::Table" {
		configuration.tableStatus == ['ACTIVE']
	}

	rule checkcompliance when
	resourceType == "AWS::DynamoDB::Table"
	tableisactive {
		supplementaryConfiguration.ContinuousBackupsDescription.pointInTimeRecoveryDescription.pointInTimeRecoveryStatus == "ENABLED"
	}
	EOF

}

References

Would you like to implement a fix?

No

@ghimire ghimire added the needs-triage Waiting for first response or review from a maintainer. label Sep 27, 2022
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this 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.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/configservice Issues and PRs that pertain to the configservice service. label Sep 27, 2022
@ewbankkit ewbankkit added enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Sep 28, 2022
@dtserekhman-starz
Copy link

Hi, when is this pull request expected to be approved and merged?

@gpetrovgeorgi
Copy link

Hello, I am also awaiting for this implementation to take place. When this could happen ?

@github-actions github-actions bot added this to the v4.65.0 milestone Apr 25, 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 issue 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 similar to this, 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
enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. service/configservice Issues and PRs that pertain to the configservice service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants