cloudify-cosmo/Execute Terraform Environment Cost
Execute a terraform cost on already created environment, or create one if it doesn't exist.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Oct 5, 2022
- License
- None
Pinned Snippet
uses: cloudify-cosmo/terraform-cost-action@396c258d8ae06efa1c7b3b4274b31d408c73d372 # v1.3tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| environment-name | Name of Cloudify environment to handle terraform cost | yes | — |
| environment-id | Id of Cloudify environment to handle terraform cpst | no | - |
| labels | A labels list of the form <key>:<value>,<key>:<value>. Any comma and colon in <value> must be escaped with \. The labels’ keys are saved in lowercase. | no | - |
| module-file | URL/path to Terraform module archive | yes | — |
| module-source-path | path to Terraform module inside the archive | yes | — |
| variables-file | YAML/JSON file containing template variables | no | - |
| environment-file | YAML/JSON file containing environment variables to pass to the Terraform process | no | - |
| environment-mapping | A whitespace-delimited list of strings. For each item: * If it is of the form `k=v`, then the value of the environment variable `k` is passed as environment variable `v` to Terraform * Otherwise, let the value be `x`; then the environment variable `x` is passed as-is to Terraform This effectively passes environment variables, visible to the CI/CD platform, as environment variables to Terraform. Useful, among others, for passing Cloud credentials - stored in the CI/CD platform - to Terraform | no | - |
| api-key | infracost api key to allow calling cloud pricing api. | yes | — |
Outputs
| name | description |
|---|---|
| terraform-cost | Terraform module cost |