aws-samples / eb-php-wordpress

Configuration files and instructions for installing WordPress securely and running it in a load balanced AWS Elastic Beanstalk environment with an EFS file system for shared assets.
Apache License 2.0
165 stars 95 forks source link

Added support for VPCs that don't have hostnames #10

Closed jribe closed 6 years ago

jribe commented 7 years ago

The example config doesn't work in VPCs that have DNS hostnames disabled. This change uses instance metadata + the aws cli to discover the EFS mount point's ip address without using a hostname.

mwunderl commented 6 years ago

Calling EFS with the AWS CLI requires adding permission to the instance profile. This requires additional configuration steps and would be a breaking change, but I could see putting it in a branch for custom VPCs. Do you have a use case for not enabling DNS resolution and DNS host names?

Thanks, -Michael

jribe commented 6 years ago

I personally don't have a desire to turn off DNS host names, but the IT department at my company does.

mwunderl commented 6 years ago

Merged into custom-vpc branch. Thanks, -Michael