-
-
Notifications
You must be signed in to change notification settings - Fork 1
update repo #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update repo #13
Conversation
|
This code is incorrect. I want to support multiple ssh_keys that I can add manually AND support ec2 instance connect. Please redo this. |
main.tf
Outdated
| "Effect": "Allow", | ||
| "Action": "ec2:DescribeInstances", | ||
| "Resource": [ | ||
| "arn:aws:ec2:us-east-1:${data.aws_caller_identity.current.account_id}:instance/${aws_instance.x.id}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should just pass the resources directly as they can be in different environments.
variables.tf
Outdated
|
|
||
| variable "ingress_cidrs" {} | ||
|
|
||
| variable "ec2_connect_installed" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to: ec2_connect_enabled
variables.tf
Outdated
| default = [] | ||
| variable "ssh_key" { | ||
| description = "SSH public key to add to the image" | ||
| default = "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be multiple SSH keys. Why is this modified?
README.md
Outdated
| module "bastion" { | ||
| source = "github.com/opszero/terraform-aws-bastion" | ||
|
|
||
| ssh_key = "ssh-rsa ..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should still support multiple ssh-keys. Why did you remove this feature?
| # Keys | ||
| touch /home/ubuntu/.ssh/authorized_keys | ||
| echo "${ssh_key}" >> /home/ubuntu/.ssh/authorized_keys | ||
| %{endfor~} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to still support multiple ssh keys
No description provided.