Closed muhammadbader closed 1 year ago
Hey @muhammadbader 👋 Thank you for taking the time to file this issue. So that we have all of the information necessary to reproduce and investigate, can you update the issue with the information found in the template?
I opened a pull request
Hey @muhammadbader 👋 Apologies if I was unclear - I was looking to have you update this issue with the information from the issue template. No worries; I copied over the information from the PR you submitted and updated the issue here. We'll look into this as time permits to try to determine if this is a bug.
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
after running terraform apply I got:
BUT:
into the SSM -> Run Command -> command History the command failed due to failure in downloading the s3 bucket file specified in the 'sourceinf' block although it exists there!
Expected Behavior
A status of Success in the SSM -> Run Command -> command History (which I get when running the command manually in the console using the Run Commnad option)
Actual Behavior
downloading the S3 script file failed -> running the command failed, and got the following error:
Steps to Reproduce
.tf
fileterraform apply
Important Factoids
I created an SSM document, using
aws_ssm_document
, and then tried to run it using aws_ssm_association
and I got the following error:Details:
I am trying to run a script from S3 bucket into EC2 instance using SSM, and so I created an SSM document and then used the "AWS-RunRemoteScript" template as the content of "aws_ssm_document", I tested the template itself by manually running ssm command through the aws console and it is working.
Then I used
aws_ssm_association
, and the terraform run succeded but but the "run command" it provoked failed with the following error: