aws_cloudtrail : Tags are not added to cloudtrail even if values are provided on first terraform apply #17559
Labels
bug
Addresses a defect in current functionality.
service/cloudtrail
Issues and PRs that pertain to the cloudtrail service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Description
Tags are not added to cloudtrail even if values are provided on first terraform apply.
On Second terraform apply, tags are added to cloudtrail.
I am creating an organizational trail with all configurations of cloudtrail enabled.
Terraform Version
Terraform v0.14.4
terraform-aws-provider 3.27.0
Affected Resource(s)
aws_cloudtrail
Code to reproduce:
Expected Behavior
would create tags on first apply
Actual Behavior
does not create tags on first apply and create them on second apply eventually
Trace Log
2021-02-10T15:12:10.188+0530 [INFO] plugin.terraform-provider-aws_v3.27.0_x5.exe: 2021/02/10 15:12:10 [DEBUG] [aws-sdk-go] {"InsightSelectors":[{"InsightType":"ApiCallRateInsight"}],"TrailARN":"arn:aws:cloudtrail:us-east-1:049589510323:trail/orgtrail"}: timestamp=2021-02-10T15:12:10.188+0530
2021/02/10 15:12:10 [WARN] Provider "registry.terraform.io/hashicorp/aws" produced an unexpected new value for aws_cloudtrail.org_trail, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
The text was updated successfully, but these errors were encountered: