hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.84k stars 9.19k forks source link

[Bug]: aws_appflow_flow cannot find Google Analytics connection profile #27707

Open yzouyang opened 2 years ago

yzouyang commented 2 years ago

Terraform Core Version

1.2.9

AWS Provider Version

4.23.0

Affected Resource(s)

Expected Behavior

Google Analytics flow created

Actual Behavior

Error raised that said that named GA connector could not be found

Relevant Error/Panic Output Snippet

Error: creating Appflow Flow (dcr_ga_st_web_affinity_by_session): ResourceNotFoundException: Connector Profile with name poc-google-analytics-connection does not exist.
with aws_appflow_flow.dcr_ga_flows["st_web.affinity_by_session"]
on appflow.tf line 13, in resource "aws_appflow_flow" "dcr_ga_flows":
resource "aws_appflow_flow" "dcr_ga_flows" {

Terraform Configuration Files

resource "aws_appflow_flow" "dcr_ga_flows" {
  name = "dcr_ga_st_web_affinity_by_session"
  destination_flow_config {
    connector_type = "S3"
    destination_connector_properties {
      s3 {
        bucket_name = "target_bucket"
        bucket_prefix = "target_prefix"
        s3_output_format_config {
          aggregation_config {
            aggregation_type = "SingleFile"
          }
          prefix_config {
            prefix_format = "DAY"
            prefix_type = "PATH"
          }
        }
      }
    }
  }
  source_flow_config {
    connector_type = "Googleanalytics"
    connector_profile_name = "poc-google-analytics-connection"
    source_connector_properties {
      google_analytics {
        object = "example_view_id"
      }
    }
  }
 task {
    content {
      source_fields     = []
      task_type         = "Map_all"
      task_properties  = [{
         key = "EXCLUDE_SOURCE_FIELDS_LIST"
         value = "[]"
      }]
    }
  }
  trigger_config {
    trigger_type = "OnDemand"
  }
}

Steps to Reproduce

Debug Output

Error: creating Appflow Flow (dcr_ga_st_web_affinity_by_session): ResourceNotFoundException: Connector Profile with name poc-google-analytics-connection does not exist.
with aws_appflow_flow.dcr_ga_flows["st_web.affinity_by_session"]
on appflow.tf line 13, in resource "aws_appflow_flow" "dcr_ga_flows":
resource "aws_appflow_flow" "dcr_ga_flows" {

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No response

github-actions[bot] commented 2 years ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 3 days ago

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!