I am trying to use the default aws provided AWS-RunPacker SSM document.
I have bucket with my packer hcl, some files I want to put on the box and my setup script. After troubleshooting I finally have the working iam permissions and its running through SSM. Now when running its telling me
Step fails when it is Poll action status for completion.
The limit in the output payload of aws:executeScript is 100 KB.
The payload of your script is 570.0 KB.. Please refer to Automation Service Troubleshooting Guide for more diagnosis details.
First I tried piping the output of the setup script to dev/null and it only reduced it by about 60kb. Finally I commented out everything. This is literally all I am running
source "amazon-ebs" "xxxx" {
ami_name = "xxxx"
ami_users = ["xxxxx"]
encrypt_boot = true
instance_type = "t3a.micro"
kms_key_id = "xxxx"
profile = "xxxx"
region = "us-east-1"
source_ami = "xxx"
vpc_id = "xxxx"
subnet_id = "xxxx"
security_group_ids = ["xxxx"]
ssh_username = "ec2-user"
ssh_interface = "session_manager"
iam_instance_profile = "xxxx"
tags = {
Name = "xxx"
created = "xxxx"
env = "dev"
git-repo = "xxxx"
owner = "xxxx"
service = "xxxx"
tier = "3"
}
}
build {
sources = ["source.amazon-ebs.zipato-web-docker-v2"]
}
which gives me only 1 error
Failure message
Step fails when it is Poll action status for completion.
The limit in the output payload of aws:executeScript is 100 KB.
The payload of your script is 370.0 KB.. Please refer to Automation Service Troubleshooting Guide for more diagnosis details.
Could use some help here as this implementation seemed like a win win for not using ssh keys and doing it all through SSM but now im not so sure.
removing everything 1 by 1 to reduce the output size until eventually I am trying to build an ami thats with nothing on top