Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.resourcely.yaml: update config to version 2 #4

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 76 additions & 2 deletions .resourcely.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,79 @@
version: "1"
version: "2"

terraform_config_roots:

- name: Example project
relative_path: .

description: "Scaffolding project that demonstrates how to
integrate Resourcely with a Github Actions-based Terraform
workflow."

# Type of config root. Each type has its own set of configuration options.
#
# Allowed Values:
# simple - the config root is a Terraform root module itself.
#
# Environments:
# It is common to apply a Terraform config to multiple environments, each
# with its own Terraform state file.
#
# `simple` config roots use Terraform variables and per-env *.tfvars files
# for environment-specific values. The config contains references to
# Terraform variables. The per-env *.tfvars files define the values of
# those variables in each env.
type: simple

# Path to the config root, the directory containing the *.tf
# files.
#
# Relative to the location of this .resourcely.yaml file
#
# If the config root is the same directory, specify
# path: .
path: .

# Name of the file in the `path` directory in which to place
# new resources by default.
#
# Developers may pick a different file, but will be defaulted to this one.
default_file: main.tf

# Uncomment to enabled environment-specific values
# # (optional)
# #
# # Name of the file in the `path` directory in which to place new
# # variable declarations for new environment-specific values.
# #
# var_file: variables.tf
#
# # (optional)
# #
# # List of the environments that this config root supports.
# #
# # If this list is missing or empty, developers will not be allowed
# # to use environment-specific values.
# #
# # If non-empty, a developers will be allowed to use environment-specific
# # values. For any environment variable, they will have to supply a value
# # for each environment in this list.
# #
# environments:
# -
# # Name of the environment.
# #
# # This name is used for two purposes.
# # 1. It is shown in the UI to the developers.
# # 2. It is used as the value for `context.environment` in guardrails
# # and blueprints.
# name: dev
#
# # Name of the file in which to place the variables definitions
# # for this environment.
# #
# # Relative to the config root `path` directory.
# #
# tfvars_file: envs/dev.tfvars
#
# -
# name: prod
# tfvars_file: envs/prod.tfvars
Loading