Default session timeout for packer builder assume role

Viewed 16

Seems while creating an AMI using packer, my packer sessions is getting timed out after 3600 sec.

Below is what i had put in builder's assume role, though there is nothing related to time out but want to know if there is something need to set.

{
"builders" : [{
  "assume_role" : "role-with-2-hr-session-timeout",
  "session_name" : "packer-run"
},
...
...
]
<--- other configs--->
}

i see below logs in my codepipeline :

2022/09/05 19:55:45 packer-builder-amazon-ebs plugin: ssm: Retryable error: TargetNotConnected: i-nkcsvndskns0erw0ir is not connected
2022/09/05 19:55:46 packer-builder-amazon-ebs plugin: ssm: Retryable error: TargetNotConnected: i-nkcsvndskns0erw0ir is not connected
2022/09/05 19:55:47 packer-builder-amazon-ebs plugin: ssm: Retryable error: TargetNotConnected: i-nkcsvndskns0erw0ir is not connected
2022/09/05 19:55:48 packer-builder-amazon-ebs plugin: ssm: Retryable error: TargetNotConnected: i-nkcsvndskns0erw0ir is not connected
2022/09/05 19:55:49 packer-builder-amazon-ebs plugin: ssm: Retryable error: TargetNotConnected: i-nkcsvndskns0erw0ir is not connected
2022/09/05 19:55:50 packer-builder-amazon-ebs plugin: ssm: Retryable error: TargetNotConnected: i-nkcsvndskns0erw0ir is not connected

i checked out there is a "duration_seconds" setting that we can set with assume_role in builder. but what if we don't set it? is there any default timeout of 1 hr that is causing the issue.? what should i do in this case?

Please suggest.

Thanks

0 Answers
Related