https://github.com/spacelift-io/terraform-spacelift-stack
Creates a Spacelift stack and supporting resources.
https://github.com/spacelift-io/terraform-spacelift-stack
Last synced: about 2 months ago
JSON representation
Creates a Spacelift stack and supporting resources.
- Host: GitHub
- URL: https://github.com/spacelift-io/terraform-spacelift-stack
- Owner: spacelift-io
- Created: 2022-02-15T21:40:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-04T21:58:13.000Z (over 2 years ago)
- Last Synced: 2025-04-05T22:11:35.712Z (about 2 months ago)
- Language: HCL
- Size: 10.7 KB
- Stars: 7
- Watchers: 15
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Requirements
| Name | Version |
|------|---------|
| [spacelift](#requirement\_spacelift) | ~> 0.1.11 |## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | n/a |
| [spacelift](#provider\_spacelift) | ~> 0.1.11 |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [aws_iam_role.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
| [spacelift_aws_role.this](https://registry.terraform.io/providers/spacelift-io/spacelift/latest/docs/resources/aws_role) | resource |
| [spacelift_context_attachment.this](https://registry.terraform.io/providers/spacelift-io/spacelift/latest/docs/resources/context_attachment) | resource |
| [spacelift_policy_attachment.this](https://registry.terraform.io/providers/spacelift-io/spacelift/latest/docs/resources/policy_attachment) | resource |
| [spacelift_run.this](https://registry.terraform.io/providers/spacelift-io/spacelift/latest/docs/resources/run) | resource |
| [spacelift_stack.this](https://registry.terraform.io/providers/spacelift-io/spacelift/latest/docs/resources/stack) | resource |
| [spacelift_stack_destructor.this](https://registry.terraform.io/providers/spacelift-io/spacelift/latest/docs/resources/stack_destructor) | resource |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [administrative](#input\_administrative) | Whether or not the stack created should be administrative (able to manage Spacelift resources). | `bool` | `false` | no |
| [after\_apply](#input\_after\_apply) | List of after-apply scripts. | `list(string)` | `[]` | no |
| [after\_destroy](#input\_after\_destroy) | List of after-destroy scripts. | `list(string)` | `[]` | no |
| [after\_init](#input\_after\_init) | List of after-init scripts. | `list(string)` | `[]` | no |
| [after\_perform](#input\_after\_perform) | List of after-perform scripts. | `list(string)` | `[]` | no |
| [after\_plan](#input\_after\_plan) | List of after-plan scripts. | `list(string)` | `[]` | no |
| [attachment\_context\_ids](#input\_attachment\_context\_ids) | A list of context ids to attach in priority order. | `list(any)` | `[]` | no |
| [attachment\_policy\_ids](#input\_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](#input\_autodeploy) | Whether or not the Spacelift stack created should autodeploy resources without approval. | `bool` | `false` | no |
| [autoretry](#input\_autoretry) | Indicates whether obsolete proposed changes should automatically be retried. | `bool` | `false` | no |
| [before\_apply](#input\_before\_apply) | List of before-apply scripts. | `list(string)` | `[]` | no |
| [before\_destroy](#input\_before\_destroy) | List of before-destroy scripts. | `list(string)` | `[]` | no |
| [before\_init](#input\_before\_init) | List of before-init scripts. | `list(string)` | `[]` | no |
| [before\_perform](#input\_before\_perform) | List of before-perform scripts. | `list(string)` | `[]` | no |
| [before\_plan](#input\_before\_plan) | List of before-plan scripts. | `list(string)` | `[]` | no |
| [create\_iam\_role](#input\_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](#input\_description) | A description to describe your Spacelift stack. | `string` | n/a | yes |
| [enable\_local\_preview](#input\_enable\_local\_preview) | Whether or not to enable the Spacelift CLI 'local preview' feature | `bool` | `false` | no |
| [execution\_role\_arn](#input\_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](#input\_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)` |[| no |
"arn:aws:iam::aws:policy/PowerUserAccess"
]
| [github\_organization](#input\_github\_organization) | For GitHub Enterprise VCS users, use this variable to specify the name of your GitHub Organization. | `string` | `""` | no |
| [labels](#input\_labels) | Labels to apply to the stack being created. | `list(string)` | `[]` | no |
| [manage\_state](#input\_manage\_state) | Whether or not you would like Spacelift to manage the state for your stack. | `bool` | `true` | no |
| [name](#input\_name) | The name of the Spacelift stack to create. | `string` | n/a | yes |
| [project\_root](#input\_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](#input\_repository\_branch) | The name of the branch to use for the specified Git repository. | `string` | n/a | yes |
| [repository\_name](#input\_repository\_name) | The name of the Git repository for the stack to use. | `string` | n/a | yes |
| [runner\_image](#input\_runner\_image) | Name of the Docker image used to process Runs. | `string` | `""` | no |
| [setup\_aws\_integration](#input\_setup\_aws\_integration) | Whether or not to setup the AWS integration for the Spacelift stack being created. | `bool` | `true` | no |
| [spacelift\_account\_name](#input\_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](#input\_spacelift\_aws\_account\_id) | The ID of Spacelift's AWS account. | `string` | `"324880187172"` | no |
| [terraform\_version](#input\_terraform\_version) | The version of Terraform for your stack to use. Defaults to latest. | `string` | `""` | no |
| [worker\_pool\_id](#input\_worker\_pool\_id) | The ID of the worker pool to use for Spacelift stack runs. | `string` | `""` | no |## Outputs
| Name | Description |
|------|-------------|
| [id](#output\_id) | The id of the created stack |
| [roleArn](#output\_roleArn) | Conditional Output: Stack AWS Execution Role Arn This value is null if the create\_iam\_role bool is false |