Skip to content

Commit

Permalink
chore: CRabbit suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
gberenice committed Nov 18, 2024
1 parent 1e3ab6c commit 9c749ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ It allows to define and manage multiple AWS integrations within Spacelift, facil

This module replaces the deprecated `spacelift_aws_role` resource and [is recommended](https://registry.terraform.io/providers/spacelift-io/spacelift/latest/docs/resources/aws_role) for use instead.

Before creating the Spacelift AWS integration, _you need to have an AWS IAM Role_ within your AWS account that the cloud integration will use.

## Usage

Here’s an example of how to use this module in your Terraform configuration:
Expand All @@ -21,14 +23,16 @@ module "spacelift_aws_integrations" {
aws_integrations = {
"prod" = {
aws_account_id = "123456789012"
role_arn = "arn:aws:iam::123456789012:role/spacelift"
duration_seconds = 1200
generate_credentials_in_worker = true
labels = ["prod", "team:sre"]
},
"dev" = {
aws_account_id = "210987654321"
role_arn = "arn:aws:iam::210987654321:role/spacelift"
external_id = "dev-external-id"
space_id = "custom_space"
space_id = "custom-space"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/complete/versions.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
terraform {
required_version = "~> 1.0"
required_version = ">= 1.0"

required_providers {
spacelift = {
source = "spacelift-io/spacelift"
version = "~> 1.0"
version = ">= 1.0"
}
}
}

0 comments on commit 9c749ff

Please sign in to comment.