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

aws_ssm_patch_baseline operating_system CENTOS missing #17836

Closed
dmytro-malovany opened this issue Apr 11, 2018 · 2 comments
Closed

aws_ssm_patch_baseline operating_system CENTOS missing #17836

dmytro-malovany opened this issue Apr 11, 2018 · 2 comments

Comments

@dmytro-malovany
Copy link

Terraform Version

./terraform version
Terraform v0.11.7
+ provider.aws v1.14.0

Terraform Configuration Files

resource "aws_ssm_patch_baseline" "patch-baseline-centos" {
  name  = "CentOS_Linux"
  operating_system = "CENTOS"
  description = "CentOS Linux baseline"
  approved_patches_compliance_level = "CRITICAL"

  approval_rule = {
    approve_after_days = 7
    compliance_level = "CRITICAL"
    patch_filter = {
      key = "SEVERITY"
      values = ["Critical"]
    }
  }
...
}

Debug Output

2018/04/11 09:58:16 [TRACE] root: eval: *terraform.EvalValidateResource
2018/04/11 09:58:16 [ERROR] root: eval: *terraform.EvalSequence, err: Warnings: []. Errors: [expected operating_system to be one of [WINDOWS AMAZON_LINUX UBUNTU REDHAT_ENTERPRISE_LINUX], got CENTOS]
2018/04/11 09:58:16 [TRACE] [walkValidate] Exiting eval tree: aws_ssm_patch_baseline.patch-baseline-centos

Expected Behavior

Terraform should create patch baseline for Centos (like it does for Amazon linux, Suse or Windows)

Actual Behavior

Terrafrom fails with error:

./terraform plan

Error: aws_ssm_patch_baseline.patch-baseline-centos: expected operating_system to be one of [WINDOWS AMAZON_LINUX UBUNTU REDHAT_ENTERPRISE_LINUX], got CENTOS

Steps to Reproduce

  1. terraform init
  2. add mentioned aws_ssm_patch_baseline to main.tf
  3. terraform plan

References

AWS documentation regarding it:
https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_GetDefaultPatchBaseline.html#API_GetDefaultPatchBaseline_ResponseElements

@ghost
Copy link

ghost commented Apr 11, 2018

This issue has been automatically migrated to hashicorp/terraform-provider-aws#4170 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to hashicorp/terraform-provider-aws#4170.

@ghost
Copy link

ghost commented Apr 3, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 3, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants