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

Conditionally add ECS cluster SSM policies #25

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

Stretch96
Copy link
Member

  • This conditionally adds the policies with permissions required to use SSM default host management configuration.
  • It checks for the value of the service setting to ensure dhcm has been enabled to decide wether to add the policies. aws_ssm_service_setting doesn't yet have a data source (new data source: aws_ssm_service_setting hashicorp/terraform-provider-aws#25170), so it uses a script along with the external provider instead to get the service setting parameters.

@Stretch96 Stretch96 force-pushed the conditionally-add-ecs-cluster-ssm-policies branch 7 times, most recently from 7e6bc0b to 5dc6053 Compare December 22, 2023 12:16
@Stretch96 Stretch96 force-pushed the conditionally-add-ecs-cluster-ssm-policies branch from 5dc6053 to 3e32ccc Compare January 2, 2024 15:01
* This conditionally adds the policies with permissions required to use
  SSM default host management configuration.
* It checks for the value of the service setting to ensure dhcm has been
  enabled to decide wether to add the policies. `aws_ssm_service_setting`
  doesn't yet have a data source (hashicorp/terraform-provider-aws#25170),
  so it uses a script along with the `external` provider instead, to get
  the service setting parameters.
@Stretch96 Stretch96 force-pushed the conditionally-add-ecs-cluster-ssm-policies branch from 3e32ccc to a0fd78f Compare January 2, 2024 15:44
@Stretch96 Stretch96 merged commit a3495ce into main Jan 2, 2024
5 checks passed
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.

2 participants