Guimove / terraform-aws-bastion

Terraform module which creates SSH bastion infrastructure on AWS
https://registry.terraform.io/modules/Guimove/bastion/aws
Apache License 2.0
205 stars 186 forks source link

Issue when loging "Cannot open /var/log/bastiont..." #151

Closed Miguel-KD closed 1 year ago

Miguel-KD commented 1 year ago

Hi, first of all, thank you for your module is pretty useful. For some months I found some of the users sometimes have a problem accessing the bastion with this error "script: cannot open /var/log/bastion/2023-02-06_12-19-59_AWESOMEUSER_D66uDuD5C6OT2AUVBou42SRsyRa0tDmm.data: Permission denied" . It happened to me with multiple people and different environments, usually, I just solve it by destroying and creating the whole bastion (commenting on the module) and applying it. Recreate again probably is not the best option.

Can I help you to identify the problem even coding some lines to help? Where should I be checking?

Thanks

jirkabs commented 1 year ago

Duplicate of #127.

Miguel-KD commented 1 year ago

Thanks @jirkabs