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

non-default VPC #3

Closed babatundebusari closed 7 years ago

babatundebusari commented 7 years ago

1. Will this work with non-default VPC?

will like to use custom VPC i created

2. Can i use an already created EFS volume?

instead of allowing EBS to create one for me?

mwunderl commented 7 years ago

Hi babatun,

1- Custom VPC will work as long as you configure your environment to launch instances in the custom VPC. You can use a configuration file like this one when you create your environment, use the VPC options on the eb create command.

2- You can mount an existing file system in the same VPC by removing the efs-create.config file from your the .ebextensions directory and adding the ID of your existing file system to efs-mount.config

option_settings:
  aws:elasticbeanstalk:application:environment:
    EFS_VOLUME_ID: '`{"Ref" : "FileSystem"}`'

Replace the ref with your file system ID like this:

option_settings:
  aws:elasticbeanstalk:application:environment:
    EFS_VOLUME_ID: fs-e7605f4e

Thanks, -Michael

babatundebusari commented 7 years ago

@mwunderl

1.

1- Custom VPC will work as long as you configure your environment to launch instances in the custom VPC. You can use a configuration file like this one when you create your environment, (AND/OR) use the VPC options on the eb create command.

Is that AND or an OR? do i need to use that configuration file AND use the VPC options in eb create command or its ither OR?

2.

Also HOW do i use the configuration file vpc-custom-loadbalanced.config? Do i replace it with the loadbalancer-sg.config file or i add it as additional file? If i need to add it, where do i add it to?

Thanks

babatundebusari commented 7 years ago

@mwunderl

never mind i just used the option available with eb create .. and it worked like a champ

patricker commented 6 years ago

Found this helpful. URL has moved if someone needs it: https://raw.githubusercontent.com/awslabs/elastic-beanstalk-docs/master/configuration-files/aws-provided/environment-configuration/vpc-custom-loadbalanced.config