Where can I attach an iam_instance_profile

Need to work with some other AWS services
3 Replies
endingwithali
endingwithali3y ago
i havent tried this, but you might able to use a aws based template and add this terraform resource https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_instance_profile
bpmct
bpmct3y ago
auth = aws-instance-identity should work fine. The agent, when run on the instance can determine out the instance ID and register with Coder. To add an iam_instance_profile, you'll want to edit the aws-linux template and either a) provision a new profile or b) attach an existing one. You can specify what profile the VM is provisioned with by editing iam_instance_profile property within the aws_instance block in the template: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#iam_instance_profile We have some more docs on creating and updating templates here. You can use any Terraform resources/properties you'd like inside templates: https://coder.com/docs/coder-oss/latest/templates
Templates - Coder OSS main docs
Learn about templates, which define the infrastructure underlying workspaces
Want results from more Discord servers?
Add your server