Skip to content

GitHub Action for generating aliased provider blocks that satisfy required configuration aliases

License

Notifications You must be signed in to change notification settings

bendrucker/terraform-configuration-aliases-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-configuration-aliases-action

GitHub Action for generating aliased provider blocks that satisfy required configuration aliases

Terraform modules can accept multiple instances of a provider using configuration_aliases. When used, the providers meta-argument will be included to pass in configured provider instances for each alias. However, this means that the module no longer passes terraform validate as-is—it is not a complete configuration.

This action inspects a Terraform module, finds all configuration aliases, and writes a .tf.json file that defines matching provider blocks. This makes the module a complete configuration, allowing terraform validate to operate.

Usage

steps:
  - uses: bendrucker/terraform-configuration-aliases-action@v1

Inputs

Name Description Default
path The path to the module ''

Outputs

Name Description
providers The generated provider configuration as a JSON string

About

GitHub Action for generating aliased provider blocks that satisfy required configuration aliases

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •