Closed ruthchangadi closed 1 year ago
It has only just occurred to me that I can adjust the operation preferences for stack instance deployment, so the maximum session duration isn't an issue anymore. I'd still like to know where the session limit is for what role, though.
@ruthchangadi during customization, the AWSAFTExecution role is assumed with default session duration (1 hour) into the target account from the AFT management account. Currently, there isn't a way for you to increase the session duration on this STS assume role call.
Thanks @snebhu3 for this. I'll close this.
Terraform Version & Prov:
AFT Version: 1.6.5
Terraform Version & Provider Versions Please provide the outputs of
terraform version
andterraform providers
from within your AFT environmentterraform version
terraform providers
Bug Description Receiving error "Error: Failed to save state" and "Error saving state: failed to upload state: NoCredentialProviders: no valid providers in chain. Deprecated." in the middle of finishing a stack set instance creation operation.
To Reproduce Steps to reproduce the behavior:
Expected behavior The build should finish and exit appropriately given a large enough maximum session duration for the assume role to last to finish the save state operation.
Related Logs
Additional context I'm not sure which role should have its maximum session duration increased; I've tried to increase it for both AWSAFTExecution and AWSAFTAdmin with no luck.