[Bug]: Unable to create aws_sns_topic_subscription
when filter_policy_scope
and filter_policy
are known after apply #32072
Open
Description
Terraform Core Version
1.5.0
AWS Provider Version
5.4.0
Affected Resource(s)
aws_sns_topic_subscription
Expected Behavior
It is not currently possible to create an aws_sns_topic_subscription
where filter_policy_scope = "MessageBody"
and filter_policy
is known after apply (because it depends on another resource):
resource "aws_sns_topic_subscription" "subscription" {
topic_arn = aws_sns_topic.topic.arn
protocol = "https"
endpoint = "https://dummy"
filter_policy_scope = "MessageBody"
# `terraform_data.null` is used to illustrate a minimal resource dependency
filter_policy = jsonencode({ id = terraform_data.null.id })
}
Actual Behavior
When neither resource has been created yet, Terraform yields an error:
$ terraform plan
...
╷
│ Error: filter_policy is required when filter_policy_scope is set
│
│ with aws_sns_topic_subscription.subscription,
│ on main.tf line 16, in resource "aws_sns_topic_subscription" "subscription":
│ 16: resource "aws_sns_topic_subscription" "subscription" {
│
╵
It is possible to work around the issue using resource targeting:
$ terraform apply -target terraform_data.null
...
$ terraform plan
...
# aws_sns_topic_subscription.subscription will be created
+ resource "aws_sns_topic_subscription" "subscription" {
+ arn = (known after apply)
+ confirmation_timeout_in_minutes = 1
+ confirmation_was_authenticated = (known after apply)
+ endpoint = "https://dummy"
+ endpoint_auto_confirms = false
+ filter_policy = jsonencode(
{
+ id = "2e4cdf40-db80-2440-9a14-d34ce48f97fb"
}
)
+ filter_policy_scope = "MessageBody"
+ id = (known after apply)
+ owner_id = (known after apply)
+ pending_confirmation = (known after apply)
+ protocol = "https"
+ raw_message_delivery = false
+ topic_arn = (known after apply)
}
Note
Outside of the minimal example, the actual dependent resource which appears in the filter_policy
of the aws_sns_topic_subscription
is aws_appconfig_extension_association
, but that isn't relevant to the question as any dependent resource triggers the same behavior.
Relevant Error/Panic Output Snippet
╷
│ Error: filter_policy is required when filter_policy_scope is set
│
│ with aws_sns_topic_subscription.subscription,
│ on main.tf line 16, in resource "aws_sns_topic_subscription" "subscription":
│ 16: resource "aws_sns_topic_subscription" "subscription" {
│
╵
Terraform Configuration Files
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
resource "aws_sns_topic" "topic" {
}
resource "terraform_data" "null" {
}
resource "aws_sns_topic_subscription" "subscription" {
topic_arn = aws_sns_topic.topic.arn
protocol = "https"
endpoint = "https://dummy"
filter_policy_scope = "MessageBody"
# `terraform_data.null` is used to illustrate a minimal resource dependency
filter_policy = jsonencode({ id = terraform_data.null.id })
}
Steps to Reproduce
terraform init
terraform plan
(make sure no resource is created yet)
Debug Output
2023-06-16T13:56:32.916-0700 [INFO] Terraform version: 1.5.0
2023-06-16T13:56:32.916-0700 [DEBUG] using github.com/hashicorp/go-tfe v1.26.0
2023-06-16T13:56:32.916-0700 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2
2023-06-16T13:56:32.916-0700 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0
2023-06-16T13:56:32.916-0700 [DEBUG] using github.com/zclconf/go-cty v1.12.2
2023-06-16T13:56:32.916-0700 [INFO] Go runtime version: go1.20
2023-06-16T13:56:32.916-0700 [INFO] CLI args: []string{"/Users/mxxk/.asdf/installs/terraform/1.5.0/bin/terraform", "plan"}
2023-06-16T13:56:32.916-0700 [DEBUG] Attempting to open CLI config file: /Users/mxxk/.terraformrc
2023-06-16T13:56:32.916-0700 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2023-06-16T13:56:32.916-0700 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2023-06-16T13:56:32.916-0700 [DEBUG] ignoring non-existing provider search directory /Users/mxxk/.terraform.d/plugins
2023-06-16T13:56:32.916-0700 [DEBUG] ignoring non-existing provider search directory /Users/mxxk/Library/Application Support/io.terraform/plugins
2023-06-16T13:56:32.916-0700 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2023-06-16T13:56:32.917-0700 [INFO] CLI command args: []string{"plan"}
2023-06-16T13:56:32.917-0700 [DEBUG] New state was assigned lineage "c2a784f9-d79f-5963-7871-1d798ca999ea"
2023-06-16T13:56:33.171-0700 [DEBUG] checking for provisioner in "."
2023-06-16T13:56:33.171-0700 [DEBUG] checking for provisioner in "/Users/mxxk/.asdf/installs/terraform/1.5.0/bin"
2023-06-16T13:56:33.171-0700 [INFO] backend/local: starting Plan operation
2023-06-16T13:56:33.172-0700 [DEBUG] created provider logger: level=debug
2023-06-16T13:56:33.172-0700 [INFO] provider: configuring client automatic mTLS
2023-06-16T13:56:33.178-0700 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5]
2023-06-16T13:56:33.190-0700 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5 pid=63645
2023-06-16T13:56:33.190-0700 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5
2023-06-16T13:56:33.373-0700 [INFO] provider.terraform-provider-aws_v5.4.0_x5: configuring server automatic mTLS: timestamp=2023-06-16T13:56:33.373-0700
2023-06-16T13:56:33.384-0700 [DEBUG] provider: using plugin: version=5
2023-06-16T13:56:33.384-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: plugin address: address=/var/folders/kq/zqxnkcz94n97q3qrpvtl16l00000gn/T/plugin3211057355 network=unix timestamp=2023-06-16T13:56:33.384-0700
2023-06-16T13:56:33.669-0700 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-06-16T13:56:33.673-0700 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5 pid=63645
2023-06-16T13:56:33.673-0700 [DEBUG] provider: plugin exited
2023-06-16T13:56:33.673-0700 [DEBUG] Building and walking validate graph
2023-06-16T13:56:33.673-0700 [DEBUG] adding implicit provider configuration provider["terraform.io/builtin/terraform"], implied first by terraform_data.null
2023-06-16T13:56:33.673-0700 [DEBUG] ProviderTransformer: "aws_sns_topic_subscription.subscription" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/aws"]
2023-06-16T13:56:33.673-0700 [DEBUG] ProviderTransformer: "aws_sns_topic.topic" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/aws"]
2023-06-16T13:56:33.673-0700 [DEBUG] ProviderTransformer: "terraform_data.null" (*terraform.NodeValidatableResource) needs provider["terraform.io/builtin/terraform"]
2023-06-16T13:56:33.673-0700 [ERROR] AttachSchemaTransformer: No provider config schema available for provider["terraform.io/builtin/terraform"]
2023-06-16T13:56:33.673-0700 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/aws\"]" references: []
2023-06-16T13:56:33.673-0700 [DEBUG] ReferenceTransformer: "provider[\"terraform.io/builtin/terraform\"]" references: []
2023-06-16T13:56:33.673-0700 [DEBUG] ReferenceTransformer: "aws_sns_topic.topic" references: []
2023-06-16T13:56:33.673-0700 [DEBUG] ReferenceTransformer: "terraform_data.null" references: []
2023-06-16T13:56:33.673-0700 [DEBUG] ReferenceTransformer: "aws_sns_topic_subscription.subscription" references: [terraform_data.null aws_sns_topic.topic]
2023-06-16T13:56:33.674-0700 [DEBUG] Starting graph walk: walkValidate
2023-06-16T13:56:33.674-0700 [DEBUG] created provider logger: level=debug
2023-06-16T13:56:33.674-0700 [INFO] provider: configuring client automatic mTLS
2023-06-16T13:56:33.676-0700 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5]
2023-06-16T13:56:33.689-0700 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5 pid=63646
2023-06-16T13:56:33.689-0700 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5
2023-06-16T13:56:33.872-0700 [INFO] provider.terraform-provider-aws_v5.4.0_x5: configuring server automatic mTLS: timestamp=2023-06-16T13:56:33.870-0700
2023-06-16T13:56:33.881-0700 [DEBUG] provider: using plugin: version=5
2023-06-16T13:56:33.881-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: plugin address: network=unix address=/var/folders/kq/zqxnkcz94n97q3qrpvtl16l00000gn/T/plugin608779088 timestamp=2023-06-16T13:56:33.881-0700
2023-06-16T13:56:34.067-0700 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-06-16T13:56:34.070-0700 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5 pid=63646
2023-06-16T13:56:34.070-0700 [DEBUG] provider: plugin exited
2023-06-16T13:56:34.070-0700 [INFO] backend/local: plan calling Plan
2023-06-16T13:56:34.070-0700 [DEBUG] Building and walking plan graph for NormalMode
2023-06-16T13:56:34.071-0700 [DEBUG] adding implicit provider configuration provider["terraform.io/builtin/terraform"], implied first by terraform_data.null (expand)
2023-06-16T13:56:34.071-0700 [DEBUG] ProviderTransformer: "terraform_data.null (expand)" (*terraform.nodeExpandPlannableResource) needs provider["terraform.io/builtin/terraform"]
2023-06-16T13:56:34.071-0700 [DEBUG] ProviderTransformer: "aws_sns_topic_subscription.subscription (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/aws"]
2023-06-16T13:56:34.071-0700 [DEBUG] ProviderTransformer: "aws_sns_topic.topic (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/aws"]
2023-06-16T13:56:34.071-0700 [ERROR] AttachSchemaTransformer: No provider config schema available for provider["terraform.io/builtin/terraform"]
2023-06-16T13:56:34.071-0700 [DEBUG] ReferenceTransformer: "terraform_data.null (expand)" references: []
2023-06-16T13:56:34.071-0700 [DEBUG] ReferenceTransformer: "aws_sns_topic_subscription.subscription (expand)" references: [terraform_data.null (expand) aws_sns_topic.topic (expand)]
2023-06-16T13:56:34.071-0700 [DEBUG] ReferenceTransformer: "aws_sns_topic.topic (expand)" references: []
2023-06-16T13:56:34.071-0700 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/aws\"]" references: []
2023-06-16T13:56:34.071-0700 [DEBUG] ReferenceTransformer: "provider[\"terraform.io/builtin/terraform\"]" references: []
2023-06-16T13:56:34.071-0700 [DEBUG] Starting graph walk: walkPlan
2023-06-16T13:56:34.071-0700 [DEBUG] created provider logger: level=debug
2023-06-16T13:56:34.071-0700 [INFO] provider: configuring client automatic mTLS
2023-06-16T13:56:34.074-0700 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5]
2023-06-16T13:56:34.086-0700 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5 pid=63647
2023-06-16T13:56:34.086-0700 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5
2023-06-16T13:56:34.268-0700 [INFO] provider.terraform-provider-aws_v5.4.0_x5: configuring server automatic mTLS: timestamp=2023-06-16T13:56:34.268-0700
2023-06-16T13:56:34.278-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: plugin address: address=/var/folders/kq/zqxnkcz94n97q3qrpvtl16l00000gn/T/plugin3407722590 network=unix timestamp=2023-06-16T13:56:34.278-0700
2023-06-16T13:56:34.278-0700 [DEBUG] provider: using plugin: version=5
2023-06-16T13:56:34.284-0700 [DEBUG] Resource instance state not found for node "terraform_data.null", instance terraform_data.null
2023-06-16T13:56:34.284-0700 [DEBUG] ReferenceTransformer: "terraform_data.null" references: []
2023-06-16T13:56:34.285-0700 [DEBUG] refresh: terraform_data.null: no state, so not refreshing
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined Type Validate: tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=PrepareProviderConfig @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:81 tf_mux_provider=*proto5server.Server tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef @module=sdk.framework tf_attribute_path=allowed_account_ids timestamp=2023-06-16T13:56:34.519-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined Type Validate: tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:83 tf_attribute_path=allowed_account_ids tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_rpc=PrepareProviderConfig @module=sdk.framework timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined Type Validate: tf_attribute_path=shared_config_files tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_rpc=PrepareProviderConfig @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:81 @module=sdk.framework tf_mux_provider=*proto5server.Server timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined Type Validate: tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_attribute_path=shared_config_files @module=sdk.framework tf_rpc=PrepareProviderConfig @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:83 timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined Type Validate: tf_rpc=PrepareProviderConfig @module=sdk.framework tf_attribute_path=shared_credentials_files tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:81 timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined Type Validate: tf_attribute_path=shared_credentials_files @module=sdk.framework tf_rpc=PrepareProviderConfig @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:83 tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined Type Validate: tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=PrepareProviderConfig @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:81 tf_attribute_path=forbidden_account_ids tf_mux_provider=*proto5server.Server tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef @module=sdk.framework timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined Type Validate: tf_attribute_path=forbidden_account_ids tf_rpc=PrepareProviderConfig tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:83 @module=sdk.framework tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined Type Validate: @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:81 tf_attribute_path=max_retries tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_rpc=PrepareProviderConfig @module=sdk.framework timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined Type Validate: tf_attribute_path=max_retries tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:83 @module=sdk.framework tf_rpc=PrepareProviderConfig timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined Type Validate: @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:81 tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_rpc=PrepareProviderConfig @module=sdk.framework timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined Type Validate: tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_rpc=PrepareProviderConfig @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:83 @module=sdk.framework timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined Type Validate: @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:81 tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef @module=sdk.framework tf_mux_provider=*proto5server.Server tf_rpc=PrepareProviderConfig timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined Type Validate: @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:83 @module=sdk.framework tf_mux_provider=*proto5server.Server tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=PrepareProviderConfig timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined validator.List: @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwserver/block_validation.go:217 @module=sdk.framework tf_mux_provider=*proto5server.Server tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_rpc=PrepareProviderConfig description="list must contain at most 1 elements" tf_provider_addr=registry.terraform.io/hashicorp/aws timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined validator.List: tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_rpc=PrepareProviderConfig @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwserver/block_validation.go:227 tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws @module=sdk.framework description="list must contain at most 1 elements" timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined Type Validate: tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:81 tf_rpc=PrepareProviderConfig @module=sdk.framework timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined Type Validate: tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=PrepareProviderConfig @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:83 @module=sdk.framework tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined validator.List: @module=sdk.framework tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwserver/block_validation.go:217 description="list must contain at most 1 elements" tf_mux_provider=*proto5server.Server tf_rpc=PrepareProviderConfig timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined validator.List: @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwserver/block_validation.go:227 @module=sdk.framework tf_mux_provider=*proto5server.Server tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_rpc=PrepareProviderConfig description="list must contain at most 1 elements" tf_provider_addr=registry.terraform.io/hashicorp/aws timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined Type Validate: tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_rpc=PrepareProviderConfig @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:81 @module=sdk.framework tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined Type Validate: tf_mux_provider=*proto5server.Server tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_rpc=PrepareProviderConfig @module=sdk.framework tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:83 timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined validator.List: @module=sdk.framework description="list must contain at most 1 elements" tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=PrepareProviderConfig @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwserver/block_validation.go:217 tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined validator.List: tf_mux_provider=*proto5server.Server tf_rpc=PrepareProviderConfig @module=sdk.framework description="list must contain at most 1 elements" tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwserver/block_validation.go:227 timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined Type Validate: @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:81 @module=sdk.framework tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_rpc=PrepareProviderConfig timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined Type Validate: tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef @module=sdk.framework tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwschemadata/data_value.go:83 tf_rpc=PrepareProviderConfig timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined validator.List: tf_mux_provider=*proto5server.Server tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwserver/block_validation.go:217 description="list must contain at most 1 elements" @module=sdk.framework tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=PrepareProviderConfig timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.520-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined validator.List: tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwserver/block_validation.go:227 @module=sdk.framework tf_mux_provider=*proto5server.Server description="list must contain at most 1 elements" tf_req_id=5cb69ceb-2603-d71b-b07f-42636c9ac1ef tf_rpc=PrepareProviderConfig timestamp=2023-06-16T13:56:34.520-0700
2023-06-16T13:56:34.522-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Configuring Terraform AWS Provider: @module=aws tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c tf_rpc=ConfigureProvider @caller=github.com/hashicorp/terraform-provider-aws/internal/conns/config.go:141 tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws timestamp=2023-06-16T13:56:34.522-0700
2023-06-16T13:56:34.522-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Resolving credentials provider: tf_rpc=ConfigureProvider @module=aws.aws-base tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:41 tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws timestamp=2023-06-16T13:56:34.522-0700
2023-06-16T13:56:34.522-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Loading configuration: @module=aws.aws-base tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c tf_rpc=ConfigureProvider @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:41 timestamp=2023-06-16T13:56:34.522-0700
2023-06-16T13:56:34.522-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Retrieving credentials: @module=aws.aws-base tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=ConfigureProvider @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:41 timestamp=2023-06-16T13:56:34.522-0700
2023-06-16T13:56:34.522-0700 [INFO] provider.terraform-provider-aws_v5.4.0_x5: Retrieved credentials: tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c tf_aws.credentials_source=EnvConfigCredentials tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:33 @module=aws.aws-base tf_rpc=ConfigureProvider timestamp=2023-06-16T13:56:34.522-0700
2023-06-16T13:56:34.522-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Loading configuration: @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:41 tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c tf_rpc=ConfigureProvider @module=aws.aws-base tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws timestamp=2023-06-16T13:56:34.522-0700
2023-06-16T13:56:34.522-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Retrieving caller identity from STS: tf_rpc=ConfigureProvider @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:41 @module=aws.aws-base tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c timestamp=2023-06-16T13:56:34.522-0700
2023-06-16T13:56:34.523-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: HTTP Request Sent: http.method=POST http.request.body="Action=GetCallerIdentity&Version=2011-06-15
" http.request.header.authorization="AWS4-HMAC-SHA256 Credential=ASIA************4UNN/20230616/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=*****" http.url=https://sts.us-west-2.amazonaws.com/ http.user_agent="APN/1.0 HashiCorp/1.0 Terraform/1.5.0 (+https://www.terraform.io) terraform-provider-aws/5.4.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.18.1 os/macos lang/go/1.19.9 md/GOOS/darwin md/GOARCH/arm64 api/sts/1.19.1" tf_mux_provider=*schema.GRPCProviderServer @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:41 http.request.header.amz_sdk_invocation_id=6370543c-c42e-4541-b4da-935bd7361c45 http.request.header.content_type=application/x-www-form-urlencoded http.request.header.x_amz_date=20230616T205634Z http.request_content_length=43 tf_provider_addr=registry.terraform.io/hashicorp/aws @module=aws.aws-base aws.operation=GetCallerIdentity aws.region=us-west-2 aws.sdk=aws-sdk-go-v2 tf_rpc=ConfigureProvider aws.service=STS http.request.header.amz_sdk_request="attempt=1; max=25" http.request.header.x_amz_security_token=***** net.peer.name=sts.us-west-2.amazonaws.com tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c timestamp=2023-06-16T13:56:34.523-0700
2023-06-16T13:56:35.035-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: HTTP Response Received: http.response.header.x_amzn_requestid=21ace3c0-6548-4a9f-b52c-6bfa7eb09827 tf_rpc=ConfigureProvider aws.operation=GetCallerIdentity http.duration=510 http.response.body="<GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
<GetCallerIdentityResult>
<Arn>arn:aws:sts::************:assumed-role/terraform_admin/1686948992015110000</Arn>
<UserId>AROA*************PS67:1686948992015110000</UserId>
<Account>************</Account>
</GetCallerIdentityResult>
<ResponseMetadata>
<RequestId>21ace3c0-6548-4a9f-b52c-6bfa7eb09827</RequestId>
</ResponseMetadata>
</GetCallerIdentityResponse>
" http.response.header.content_type=text/xml tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:41 @module=aws.aws-base aws.region=us-west-2 http.response.header.date="Fri, 16 Jun 2023 20:56:34 GMT" tf_mux_provider=*schema.GRPCProviderServer aws.service=STS http.response_content_length=460 aws.sdk=aws-sdk-go-v2 http.status_code=200 timestamp=2023-06-16T13:56:35.034-0700
2023-06-16T13:56:35.036-0700 [INFO] provider.terraform-provider-aws_v5.4.0_x5: Retrieved caller identity from STS: tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c tf_rpc=ConfigureProvider tf_mux_provider=*schema.GRPCProviderServer @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:33 @module=aws.aws-base timestamp=2023-06-16T13:56:35.035-0700
2023-06-16T13:56:35.036-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Creating AWS SDK v1 session: @module=aws tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c @caller=github.com/hashicorp/terraform-provider-aws/internal/conns/config.go:154 tf_mux_provider=*schema.GRPCProviderServer tf_rpc=ConfigureProvider timestamp=2023-06-16T13:56:35.035-0700
2023-06-16T13:56:35.036-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Retrieving AWS account details: tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c tf_rpc=ConfigureProvider @caller=github.com/hashicorp/terraform-provider-aws/internal/conns/config.go:160 @module=aws timestamp=2023-06-16T13:56:35.035-0700
2023-06-16T13:56:35.036-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Retrieving caller identity from STS: @module=aws.aws-base tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=ConfigureProvider @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:41 tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c timestamp=2023-06-16T13:56:35.035-0700
2023-06-16T13:56:35.036-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: HTTP Request Sent: http.method=POST http.request.body="Action=GetCallerIdentity&Version=2011-06-15
" net.peer.name=sts.us-west-2.amazonaws.com tf_provider_addr=registry.terraform.io/hashicorp/aws aws.service=STS @module=aws.aws-base aws.sdk=aws-sdk-go-v2 http.request.header.amz_sdk_request="attempt=1; max=25" http.request.header.authorization="AWS4-HMAC-SHA256 Credential=ASIA************4UNN/20230616/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=*****" http.request.header.x_amz_date=20230616T205635Z http.request.header.x_amz_security_token=***** tf_rpc=ConfigureProvider tf_mux_provider=*schema.GRPCProviderServer aws.operation=GetCallerIdentity http.request.header.amz_sdk_invocation_id=2763c2e7-60c4-44fa-ae8a-646834aa0b8f http.user_agent="APN/1.0 HashiCorp/1.0 Terraform/1.5.0 (+https://www.terraform.io) terraform-provider-aws/5.4.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.18.1 os/macos lang/go/1.19.9 md/GOOS/darwin md/GOARCH/arm64 api/sts/1.19.1" tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:41 http.request.header.content_type=application/x-www-form-urlencoded http.request_content_length=43 http.url=https://sts.us-west-2.amazonaws.com/ aws.region=us-west-2 timestamp=2023-06-16T13:56:35.036-0700
2023-06-16T13:56:35.201-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: HTTP Response Received: aws.service=STS http.response.header.date="Fri, 16 Jun 2023 20:56:34 GMT" http.status_code=200 tf_mux_provider=*schema.GRPCProviderServer tf_rpc=ConfigureProvider @module=aws.aws-base aws.region=us-west-2 http.response.header.content_type=text/xml http.response.header.x_amzn_requestid=c839caa8-8137-4aec-b854-ba0a673c8826 tf_provider_addr=registry.terraform.io/hashicorp/aws http.response.body="<GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
<GetCallerIdentityResult>
<Arn>arn:aws:sts::************:assumed-role/terraform_admin/1686948992015110000</Arn>
<UserId>AROA*************PS67:1686948992015110000</UserId>
<Account>************</Account>
</GetCallerIdentityResult>
<ResponseMetadata>
<RequestId>c839caa8-8137-4aec-b854-ba0a673c8826</RequestId>
</ResponseMetadata>
</GetCallerIdentityResponse>
" http.response_content_length=460 tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c aws.operation=GetCallerIdentity aws.sdk=aws-sdk-go-v2 http.duration=163 @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:41 timestamp=2023-06-16T13:56:35.200-0700
2023-06-16T13:56:35.201-0700 [INFO] provider.terraform-provider-aws_v5.4.0_x5: Retrieved caller identity from STS: tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c @module=aws.aws-base tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=ConfigureProvider @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.29/logging/logger.go:33 timestamp=2023-06-16T13:56:35.200-0700
2023-06-16T13:56:35.206-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Calling provider defined Provider Configure: tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c tf_rpc=ConfigureProvider @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwserver/server_configureprovider.go:15 @module=sdk.framework tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws timestamp=2023-06-16T13:56:35.206-0700
2023-06-16T13:56:35.206-0700 [DEBUG] provider.terraform-provider-aws_v5.4.0_x5: Called provider defined Provider Configure: @caller=github.com/hashicorp/terraform-plugin-framework@v1.3.1/internal/fwserver/server_configureprovider.go:23 tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=66e69e66-6a7a-4dd7-f914-9cd89f36c50c tf_rpc=ConfigureProvider @module=sdk.framework timestamp=2023-06-16T13:56:35.206-0700
2023-06-16T13:56:35.207-0700 [DEBUG] Resource instance state not found for node "aws_sns_topic.topic", instance aws_sns_topic.topic
2023-06-16T13:56:35.207-0700 [DEBUG] ReferenceTransformer: "aws_sns_topic.topic" references: []
2023-06-16T13:56:35.207-0700 [DEBUG] refresh: aws_sns_topic.topic: no state, so not refreshing
2023-06-16T13:56:35.212-0700 [WARN] Provider "registry.terraform.io/hashicorp/aws" produced an invalid plan for aws_sns_topic.topic, 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:
- .content_based_deduplication: planned value cty.False for a non-computed attribute
- .fifo_topic: planned value cty.False for a non-computed attribute
2023-06-16T13:56:35.212-0700 [DEBUG] Resource instance state not found for node "aws_sns_topic_subscription.subscription", instance aws_sns_topic_subscription.subscription
2023-06-16T13:56:35.212-0700 [DEBUG] ReferenceTransformer: "aws_sns_topic_subscription.subscription" references: []
2023-06-16T13:56:35.213-0700 [DEBUG] refresh: aws_sns_topic_subscription.subscription: no state, so not refreshing
2023-06-16T13:56:35.215-0700 [ERROR] provider.terraform-provider-aws_v5.4.0_x5: Response contains error diagnostic: tf_resource_type=aws_sns_topic_subscription tf_rpc=PlanResourceChange @module=sdk.proto diagnostic_severity=ERROR diagnostic_summary="filter_policy is required when filter_policy_scope is set" tf_proto_version=5.3 tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=268cb1bc-1c81-fee0-ec77-c3c898d587b4 @caller=github.com/hashicorp/terraform-plugin-go@v0.15.0/tfprotov5/internal/diag/diagnostics.go:55 diagnostic_detail= timestamp=2023-06-16T13:56:35.215-0700
2023-06-16T13:56:35.215-0700 [ERROR] vertex "aws_sns_topic_subscription.subscription" error: filter_policy is required when filter_policy_scope is set
2023-06-16T13:56:35.215-0700 [ERROR] vertex "aws_sns_topic_subscription.subscription (expand)" error: filter_policy is required when filter_policy_scope is set
2023-06-16T13:56:35.215-0700 [INFO] backend/local: plan operation completed
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform planned the following actions, but then encountered a problem:
# aws_sns_topic.topic will be created
+ resource "aws_sns_topic" "topic" {
+ arn = (known after apply)
+ content_based_deduplication = false
+ fifo_topic = false
+ id = (known after apply)
+ name = (known after apply)
+ name_prefix = (known after apply)
+ owner = (known after apply)
+ policy = (known after apply)
+ signature_version = (known after apply)
+ tags_all = (known after apply)
+ tracing_config = (known after apply)
}
# terraform_data.null will be created
+ resource "terraform_data" "null" {
+ id = (known after apply)
}
Plan: 2 to add, 0 to change, 0 to destroy.
╷
│ Error: filter_policy is required when filter_policy_scope is set
│
│ with aws_sns_topic_subscription.subscription,
│ on main.tf line 16, in resource "aws_sns_topic_subscription" "subscription":
│ 16: resource "aws_sns_topic_subscription" "subscription" {
│
╵
2023-06-16T13:56:35.255-0700 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-06-16T13:56:35.259-0700 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.4.0/darwin_arm64/terraform-provider-aws_v5.4.0_x5 pid=63647
2023-06-16T13:56:35.259-0700 [DEBUG] provider: plugin exited
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None