Skip to content

Commit

Permalink
fix: bastion eip association (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
syphernl authored May 17, 2021
1 parent 1d340cb commit 1ea9572
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ Like this project? Please give it a ★ on [our GitHub](https://github.com/cloud
Are you using this project or any of our other projects? Consider [leaving a testimonial][testimonial]. =)



## Related Projects

Check out these related projects.
Expand All @@ -221,8 +222,6 @@ Check out these related projects.
- [terraform-aws-ec2-instance](https://github.com/cloudposse/terraform-aws-ec2-instance) - Terraform module for providing a general EC2 instance provisioned by Ansible
- [terraform-aws-ec2-ami-backup](https://github.com/cloudposse/terraform-aws-ec2-ami-backup) - Terraform module for automatic & scheduled AMI creation



## Help

**Got a question?** We got answers.
Expand Down
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ resource "aws_instance" "default" {
}

resource "aws_eip" "default" {
count = local.eip_enabled ? 1 : 0
network_interface = join("", aws_instance.default.*.primary_network_interface_id)
vpc = true
tags = module.this.tags
count = local.eip_enabled ? 1 : 0
instance = join("", aws_instance.default.*.id)
vpc = true
tags = module.this.tags
}

module "dns" {
Expand Down

0 comments on commit 1ea9572

Please sign in to comment.