#cloudposse (2024-03)

<http://cloudposse.com/quizcloudposse.com/quiz>

Want to hire Cloud Posse? Take our quiz. <http://cloudposse.com/quizcloudposse.com/quiz>

2024-03-04

2024-03-13

Enrique avatar
Enrique

Hello Folks!!, related to this repo https://github.com/cloudposse/terraform-spacelift-cloud-infrastructure-automation wondering how do you manage integrations for the stacks created. Those are not referenced in the modules

cloudposse/terraform-spacelift-cloud-infrastructure-automation

Terraform module to provision Spacelift resources for cloud infrastructure automation

Andriy Knysh (Cloud Posse) avatar
Andriy Knysh (Cloud Posse)

this module is used by these components (terraform root modules) https://github.com/cloudposse/terraform-aws-components/tree/main/modules/spacelift, which create Spacelift worker pools, Spacelift admin stacks (which create regular stacks), and Spacelift policies

cloudposse/terraform-spacelift-cloud-infrastructure-automation

Terraform module to provision Spacelift resources for cloud infrastructure automation

Enrique avatar
Enrique

yeah, thanks, but Im still failing to understand how Cloud Integrations (in my case AWS) are attached to every stack created by the admin-stack

Andriy Knysh (Cloud Posse) avatar
Andriy Knysh (Cloud Posse)
resource "aws_iam_instance_profile" "default" {
Andriy Knysh (Cloud Posse) avatar
Andriy Knysh (Cloud Posse)

if you use public workers, then you can provide an IAM role to asume to each stack

Enrique avatar
Enrique

ah, ok, thats the reason, I use the public ones

Andriy Knysh (Cloud Posse) avatar
Andriy Knysh (Cloud Posse)
variable "aws_role_arn" {
  type        = string
  description = "ARN of the AWS IAM role to assume and put its temporary credentials in the runtime environment"
  default     = null
}

variable "aws_role_enabled" {
  type        = bool
  description = "Flag to enable/disable Spacelift to use AWS STS to assume the supplied IAM role and put its temporary credentials in the runtime environment"
  default     = false
}
Enrique avatar
Enrique

yeah, make sense now, thanks for the inputs

Enrique avatar
Enrique

Im using the “new” approach, thats why I was not able to find what I was looking for

    keyboard_arrow_up