Closed jschelfh-be closed 1 year ago
:tada: Thanks for opening your first issue here! Welcome to the community!
The parameters passed in the user data of the launch_template do not seem to get picked-up. If I create a launch_template from an existing (working) ec2-vmseries, it does not work either creating a new instance from the template.
I figured out what the problem is. In the logs you can see
2023-02-01T10:41:55.118+01:00 ERROR : BOOTSTRAP : FAIL : 1675244515118 : Media Detection - Failed - No bootstrap media detected.. 2023-02-01T10:42:01.795+01:00 INFO : MGMTINTERFACE : COMPLETE : Firewall Interface Swap Configured. 2023-02-01T10:43:48.663+01:00 INFO : PANOS : START : Firewall version 10.2.2 starting.
The mgmt interface gets setup through the lambda. For the S3 (or Secret manager) to be accessible the mgmt interface needs to be active. If I attach for example an elastic IP immediately after the instance is launched from the template then the bootstrapping is working fine. I think you need to make the mgmt interface configuration part of the launch template...
Good catch, please let us know if there are any more issues with bootstrapping after setting the instance_profile
Describe the bug
Trying to deploy the vmseries FW using the asg module. Placed the bootstrap.xml and init-cfg.txt under config folder in an S3 bucket. The FW deploys fine, but the bootstrapping is not happening. Important to mention that this is working fine when using vmseries module - so I'm confident the structure of the s3 bucket is ok.
Expected behavior
proper bootstrapping on the FW deployment when using S3 bucket
Current behavior
no bootstrapping being done I noticed in the asg module that the parameter build-up passed in the user_data is slightly different. the asg-module uses a newline while in the vmseries example a semi-colon is used as seperator.
vs
vmseries-bootstrap-aws-s3bucket=<bucket_name>;mgmt-interface-swap=enable;op-cmd-dpdk-pkt-io=on
I have tried both - same result
Steps to reproduce
Your Environment
Terraform v1.3.6 on linux_amd64