Closed shawnsavour closed 1 year ago
I created a PR for this issue #351
Closed, added in version 5.3.0
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.
Description
Create an ec2 instance without ssm permission with cause error.
This account or role can still create an instance in console.
The root cause is because this line of code in main.tf in line 9:
Request to make the call data aws_ssm_parameter optional, something like when ami is specified, then no need to call ssm parameter to get the ami id:
Because it coalesce the
var.ami
and thenonsensitive(data.aws_ssm_parameter.this[0].value))
, so we only need it whenvar.ami
is not specified. So it should be check for null when use data to call to ssm.⚠️ Note
Versions
Module version [Required]: 5.2.1
Terraform version: any version
Provider version(s): any version
Reproduction Code [Required]
Steps to reproduce the behavior:
Expected behavior
Create an instance without ssm parameter permission
Actual behavior
Cannot create instance because missing permission