Skip to content

Error: invalid value for statement.0.sid (must only include alphanumeric characters) #59

Closed
@HectorQuiroz

Description

@HectorQuiroz

Description

We get the following error using this module:

│ Error: invalid value for statement.0.sid (must only include alphanumeric characters)
│ 
│   with module.terraform-aws-sns.data.aws_iam_policy_document.this[0],
│   on .terraform/modules/terraform-aws-sns/main.tf line 51, in data "aws_iam_policy_document" "this":
│   51: data "aws_iam_policy_document" "this" {

Versions

  • Module version

  • Terraform version:
    v1.5.7

  • Provider version(s):
    4.3.0

Reproduction Code

This error was reproduced on our environment during a tf plan to out modules today. I test with my forked repo and this error disappeared. Creating this PR to fix this issue.

Actual behavior

Error deploying data,aws_iam_policy_document.this

Terminal Output Screenshot(s)

│ Error: invalid value for statement.0.sid (must only include alphanumeric characters)
│ 
│   with module.terraform-aws-sns.data.aws_iam_policy_document.this[0],
│   on .terraform/modules/terraform-aws-sns/main.tf line 51, in data "aws_iam_policy_document" "this":
│   51: data "aws_iam_policy_document" "this" {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions