diff --git a/builtin/providers/aws/resource_aws_cloudwatch_log_group.go b/builtin/providers/aws/resource_aws_cloudwatch_log_group.go index 8e7d09d7a95c..886d0a52a461 100644 --- a/builtin/providers/aws/resource_aws_cloudwatch_log_group.go +++ b/builtin/providers/aws/resource_aws_cloudwatch_log_group.go @@ -109,7 +109,7 @@ func resourceAwsCloudWatchLogGroupRead(d *schema.ResourceData, meta interface{}) d.Set("retention_in_days", lg.RetentionInDays) } - if meta.(*AWSClient).partition != "aws-us-gov" { + if !meta.(*AWSClient).IsChinaCloud() && !meta.(*AWSClient).IsGovCloud() { tags, err := flattenCloudWatchTags(d, conn) if err != nil { return err @@ -172,7 +172,9 @@ func resourceAwsCloudWatchLogGroupUpdate(d *schema.ResourceData, meta interface{ } } - if meta.(*AWSClient).partition != "aws-us-gov" && d.HasChange("tags") { + restricted := meta.(*AWSClient).IsChinaCloud() || meta.(*AWSClient).IsGovCloud() + + if !restricted && d.HasChange("tags") { oraw, nraw := d.GetChange("tags") o := oraw.(map[string]interface{}) n := nraw.(map[string]interface{})