Resource handler returned message: "You must use a valid fully-formed launch template. Value (arn:aws:iam::${AWS::AccountId}:instance-profile/GitlabRunnerRole) for parameter iamInstanceProfile.arn is invalid. Invalid IAM Instance Profile ARN (Service: AutoScaling, Status Code: 400, Request ID: f64c0ed7-f166-4d25-a39d-2c129a9570a6)" (RequestToken: 0d3985ce-5a1f-f78e-ce85-fd92bb46d496, HandlerErrorCode: InvalidRequest)
OK, looks like the DependsOn: GitlabRunnerRole attribute is deprecated.
I was able to fix the issue by first deploying and creating the GitlabRunnerRole and InstanceProfile
Did anyone encounter the same error while running
./deploy-runner.sh <properties-file> <region> <aws-profile> <stack-name>
?https://gitlab.presidio.com/presidio-data-science/devops/ec2-gitlab-runner#to-deploy-the-gitlab-runner-stack
Notes:
ImageId=ami-0195204d5dce06d99