Skip to content
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

When enable_http_endpoint is set to false user_data are not executed #167

Open
cipous opened this issue Jul 21, 2023 · 0 comments
Open

When enable_http_endpoint is set to false user_data are not executed #167

cipous opened this issue Jul 21, 2023 · 0 comments

Comments

@cipous
Copy link

cipous commented Jul 21, 2023

As result the whole user_data.sh is not executed.
Also one is not able to connect to instance even with key pair and ec2_user.

module "bastion" {
version = "3.0.6"
source = "Guimove/bastion/aws"
bucket_name = "XXXXX${data.aws_region.current.name}.bastion-host"
region = data.aws_region.current.name
vpc_id = module.public_vpc.vpc_id
is_lb_private = "false" # its default?
bastion_host_key_pair = "bastion_host_key_pair"
create_dns_record = "false"
http_endpoint = false
bastion_iam_policy_name = "bastion-host"
elb_subnets = module.public_vpc.public_subnets
auto_scaling_group_subnets = module.public_vpc.public_subnets
}

Once we removed http_endpoint = false the user_data were executed also ec2-user could connect with keypair

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant