diff --git a/datadog/resource_datadog_integration_aws_tag_filter.go b/datadog/resource_datadog_integration_aws_tag_filter.go index 1c21e4fba..9df363b55 100644 --- a/datadog/resource_datadog_integration_aws_tag_filter.go +++ b/datadog/resource_datadog_integration_aws_tag_filter.go @@ -67,6 +67,8 @@ func resourceDatadogIntegrationAwsTagFilterCreate(ctx context.Context, d *schema providerConf := meta.(*ProviderConfiguration) apiInstances := providerConf.DatadogApiInstances auth := providerConf.Auth + integrationAwsMutex.Lock() + defer integrationAwsMutex.Unlock() req := buildDatadogIntegrationAwsTagFilter(d) if _, httpresp, err := apiInstances.GetAWSIntegrationApiV1().CreateAWSTagFilter(auth, *req); err != nil { @@ -81,6 +83,8 @@ func resourceDatadogIntegrationAwsTagFilterUpdate(ctx context.Context, d *schema providerConf := meta.(*ProviderConfiguration) apiInstances := providerConf.DatadogApiInstances auth := providerConf.Auth + integrationAwsMutex.Lock() + defer integrationAwsMutex.Unlock() req := buildDatadogIntegrationAwsTagFilter(d) if _, httpresp, err := apiInstances.GetAWSIntegrationApiV1().CreateAWSTagFilter(auth, *req); err != nil { @@ -128,6 +132,8 @@ func resourceDatadogIntegrationAwsTagFilterDelete(ctx context.Context, d *schema providerConf := meta.(*ProviderConfiguration) apiInstances := providerConf.DatadogApiInstances auth := providerConf.Auth + integrationAwsMutex.Lock() + defer integrationAwsMutex.Unlock() accountID, tfNamespace, err := utils.AccountAndNamespaceFromID(d.Id()) if err != nil {