Skip to content

[bug] incorrect variable references #11

@bzarboni1

Description

@bzarboni1

ISSUE

While attempting a terraform plan, the following errors were encountered:

$ terraform plan         

╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/foundations_github_organization/modules/foundations-github-organization/action-variables.tf line 6, in resource "github_actions_secret" "organization_workload_identity_sa":
│    6:   value         = var.organization_workload_identity_sa
│ 
│ An argument named "value" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/foundations_github_organization/modules/foundations-github-organization/action-variables.tf line 21, in resource "github_actions_organization_secret" "workload_identity_provider":
│   21:   value         = var.workload_identity_provider_name
│ 
│ An argument named "value" is not expected here.
╵
╷
│ Error: Reference to undeclared resource
│ 
│   on .terraform/modules/foundations_github_organization/modules/foundations-github-organization/repo_readme.tf line 10, in resource "github_repository_file" "main_readme":
│   10:   content    = data.file.main_readme.content
│ 
│ A data resource "file" "main_readme" has not been declared in
│ module.foundations_github_organization.

Indicating issues with the variables:

  • in resource github_actions_secret.organization_workload_identity_sa.value
  • in resource "github_repository_file.main_readme"
    • content = data.file.main_readme.content

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions