Open kikobr82 opened 4 years ago
To generate 4 keys to store wordpress secrets:
Created four aws ssm parameter resource through Terraform.
To store an encrypted value:
Run terraform init, plan, apply.
To comply with testing requirements, I’ve created an EC2 instance through terraform and attached an IAM role to it. Connected to instance using SSH key and accessed parameter value using the command:
<$ aws ssm get-parameters --names "/wordpress/WORDPRESS_DB_NAME" "/wordpress/WORDPRESS_DB_USER" --region ap-southeast-2 --with-decryption>
How shoud I name this file?
parameter-store.tf
?
That's your decision.. :) file names can change anytime anyway.. no need to worry with that.
Please, create a PR, so we can approve it and merge. Remember to include in the documentation what needs to be done once the terraform code is applied.
"Remember to include in the documentation what needs to be done once the terraform code is applied." So, after running terraform apply
?
Kiko, I am not sure if you meant the above or something else?
And does this information to go into the documentation is to be saved in a file annexed to the parameter-store.tf
as a README file or in here or elsewhere?
Cheers
The EC2 creatio. is just so you can test and validate it's all working, so no need to be done on every deployment.
What you need to include in the README is the steps required to include the right values in those parameters store keys... As you mentioning, if you are doing through the console, those values will be encrypted by default, so no need too have the encryption step included, but how to change the values in the console should be there..
For the README
After running terraform apply
, in order to include the right values in the parameters store keys or change the values manually:
Objectives:
Acceptance Criteria: