I have picked up a piece of work started by a contractor who has since left, and I was told the pipeline was working, but when I run it I get this error:
╷
│ Error: updating Auto Scaling Group (XXX): AccessDenied: You are not authorized to use launch template: XXX
│ status code: 403, request id: f7f48427-6c5a-4154-ab70-5a5226929e9f
│
│ with aws_autoscaling_group.autoscale_group,
│ on main.tf line 243, in resource "aws_autoscaling_group" "autoscale_group":
│ 243: resource "aws_autoscaling_group" "autoscale_group" {
│
I cannot track down where the permissions issue is, the role that runs terraform has a policy that allows everything:
{
"Statement": [
{
"Action": [
"*"
],
"Effect": "Allow",
"Resource": "*",
"Sid": "AllowAllPermissions"
}
],
"Version": "2012-10-17"
}
It also seems like the AMI ID is ok and I am able to launch an instance myself using my admin role, from the console using the launch template.
Has anyone had this issue and can maybe point me in the direction of where to look for the permissions error?