rjohnep / terraform-spacelift-stack

Creates a Spacelift stack and supporting resources.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requirements

Name Version
spacelift ~> 0.1.11

Providers

Name Version
aws n/a
spacelift ~> 0.1.11

Modules

No modules.

Resources

Name Type
aws_iam_role.this resource
spacelift_aws_role.this resource
spacelift_context_attachment.this resource
spacelift_policy_attachment.this resource
spacelift_run.this resource
spacelift_stack.this resource
spacelift_stack_destructor.this resource

Inputs

Name Description Type Default Required
administrative Whether or not the stack created should be administrative (able to manage Spacelift resources). bool false no
after_apply List of after-apply scripts. list(string) [] no
after_destroy List of after-destroy scripts. list(string) [] no
after_init List of after-init scripts. list(string) [] no
after_perform List of after-perform scripts. list(string) [] no
after_plan List of after-plan scripts. list(string) [] no
attachment_context_ids A list of context ids to attach in priority order. list(any) [] no
attachment_policy_ids A list of policy ids to attach to the stack being created. Optional, but powerful feature of Spacelift! list(string) [] no
autodeploy Whether or not the Spacelift stack created should autodeploy resources without approval. bool false no
autoretry Indicates whether obsolete proposed changes should automatically be retried. bool false no
before_apply List of before-apply scripts. list(string) [] no
before_destroy List of before-destroy scripts. list(string) [] no
before_init List of before-init scripts. list(string) [] no
before_perform List of before-perform scripts. list(string) [] no
before_plan List of before-plan scripts. list(string) [] no
create_iam_role Whether or not to create an IAM role for the stack to use for the AWS Integration. If false, stackAwsRoleArn must be specified for the AWS integration to be setup. bool true no
description A description to describe your Spacelift stack. string n/a yes
enable_local_preview Whether or not to enable the Spacelift CLI 'local preview' feature bool false no
execution_role_arn Use this variable if you would like to specify a custom role ARN to use for your stack's AWS integration. Note: setup_aws_integration should be true & create_iam_role false when this variable is used string "" no
execution_role_policy_arns A list of ARNs of IAM Policies to apply to the IAM Role that will be used by the Spacelift stack AWS integration. list(string)
[
"arn:aws:iam::aws:policy/PowerUserAccess"
]
no
github_organization For GitHub Enterprise VCS users, use this variable to specify the name of your GitHub Organization. string "" no
labels Labels to apply to the stack being created. list(string) [] no
manage_state Whether or not you would like Spacelift to manage the state for your stack. bool true no
name The name of the Spacelift stack to create. string n/a yes
project_root The path to your project root in your repository to use as the root of the stack. Defaults to root of the repository. string "" no
repository_branch The name of the branch to use for the specified Git repository. string n/a yes
repository_name The name of the Git repository for the stack to use. string n/a yes
runner_image Name of the Docker image used to process Runs. string "" no
setup_aws_integration Whether or not to setup the AWS integration for the Spacelift stack being created. bool true no
spacelift_account_name The name of the Spacelift account you are using. (e.g. The $NAME variable of https://$NAME.app.spacelift.io) string n/a yes
spacelift_aws_account_id The ID of Spacelift's AWS account. string "324880187172" no
terraform_version The version of Terraform for your stack to use. Defaults to latest. string "" no
worker_pool_id The ID of the worker pool to use for Spacelift stack runs. string "" no

Outputs

Name Description
id The id of the created stack
roleArn Conditional Output: Stack AWS Execution Role Arn This value is null if the create_iam_role bool is false

About

Creates a Spacelift stack and supporting resources.


Languages

Language:HCL 100.0%