We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adb1ac4 commit 46ef8baCopy full SHA for 46ef8ba
main.tf
@@ -1,6 +1,6 @@
1
locals {
2
create_instance_profile = module.this.enabled && try(length(var.instance_profile), 0) == 0
3
- instance_profile = local.create_instance_profile ? var.instance_profile : join("", aws_iam_instance_profile.default.*.name)
+ instance_profile = local.create_instance_profile ? join("", aws_iam_instance_profile.default.*.name) : var.instance_profile
4
eip_enabled = var.associate_public_ip_address && var.assign_eip_address && module.this.enabled
5
security_group_enabled = module.this.enabled && var.security_group_enabled
6
public_dns = local.eip_enabled ? local.public_dns_rendered : join("", aws_instance.default.*.public_dns)
0 commit comments