hashicorp / terraform-provider-awscc

Terraform AWS Cloud Control provider
https://registry.terraform.io/providers/hashicorp/awscc/latest/docs
Mozilla Public License 2.0
250 stars 116 forks source link

Write-only property paths containing `*` #101

Open ewbankkit opened 3 years ago

ewbankkit commented 3 years ago

When initializing the provider:

│ - Error getting Resource: Error getting the aws_elasticloadbalancingv2_listener Resource, this is an error in the provider.
│ error creating write-only attribute path (/properties/DefaultActions/*/AuthenticateOidcConfig/ClientSecret): invalid property path segment: "*"

internal/service/cloudformation/schemas/AWS_ElasticLoadBalancingV2_Listener.json:

  "writeOnlyProperties": [
    "/properties/DefaultActions/*/AuthenticateOidcConfig/ClientSecret",
    "/properties/DefaultActions/*/ForwardConfig",
    "/properties/DefaultActions/*/TargetGroupArn"
  ],

Relates:

ewbankkit commented 3 years ago

For now comment out generation of the aws_elasticloadbalancingv2_listener and aws_elasticloadbalancingv2_listener_rule Terraform resources.

PatMyron commented 2 years ago

related: https://github.com/aws-cloudformation/cloudformation-cli/issues/478#issuecomment-750944230