Comments (8)
you have probably missed one or more of the SSM parameter store values you should have added in the setup part of the demo. Have you added DBName, DBUser and the others ?
from learn-cantrill-io-labs.
Hello,
thx for you quick response, I did when I put it manually form the launched EC2 it grabs the parameters stores...
When I Echo $DBPassword from the created instance I get nothing so I run the command manually:
DBPassword=$(aws ssm get-parameters --region us-east-1 --names /A4L/Wordpress/DBPassword --with-decryption --query Parameters[0].Value)
DBPassword=`echo $DBPassword | sed -e 's/^"//' -e 's/"$//'`
and run ECHO $DBPassword again it shows.
from learn-cantrill-io-labs.
DBPassword=$(aws ssm get-parameters --region us-east-1 --names /A4L/Wordpress/DBPassword --with-decryption --query Parameters[0].Value | tr -d \")
DBRootPassword=$(aws ssm get-parameters --region us-east-1 --names /A4L/Wordpress/DBRootPassword --with-decryption --query Parameters[0].Value | tr -d \" | tr -d \")
DBUser=$(aws ssm get-parameters --region us-east-1 --names /A4L/Wordpress/DBUser --query Parameters[0].Value | tr -d \")
DBName=$(aws ssm get-parameters --region us-east-1 --names /A4L/Wordpress/DBName --query Parameters[0].Value | tr -d \")
DBEndpoint=$(aws ssm get-parameters --region us-east-1 --names /A4L/Wordpress/DBEndpoint --query Parameters[0].Value | tr -d \")
updating the User Data variables section to look like that worked for me. I don't know why but removing the lines with the echo worked.
from learn-cantrill-io-labs.
did you do any different config with the AWS cli ? change the output format or anything ?
from learn-cantrill-io-labs.
the change you have made @ryanef look to handle a different structure output from the SSM CLI interaction
from learn-cantrill-io-labs.
@acantril It's what I found in the post by "Update for Advanced Demo - Web App - Single Server to Elastic Evolution - STAGE 2" from earlier this year. I was stumped after double checking the parameters I put into Systems Manager so gave that a shot and it worked for some reason. When I was doing the manual WP installation for stage 1 and pasted in those commands, it didn't automatically get the DBRootPassword and I had to put it in myself.
from learn-cantrill-io-labs.
That didn't really answer my question...i've just tested the demo and it worked fine as is. It means you did something 'different' and I'm trying to work out what it is :)
from learn-cantrill-io-labs.
closing because no comments.
from learn-cantrill-io-labs.
Related Issues (20)
- WebIDF CloudFormation quicklink, failing to deploy HOT 4
- Instructions do not match ASL code
- mysql command not found HOT 1
- [Macie Lab] URL pointing to Sydney region HOT 1
- colliding group is in the working tree
- Pet-Cuddle-O-Tron - STAGE 3B ASL code does not match video HOT 1
- CloudFront caching causes this demo to not work (at least for me) HOT 2
- Project proposal submitted
- This typo cause failure in importing data to MySQL HOT 1
- Rate limit issue from Docker Hub in "catpipeline" Demo HOT 6
- -author ๐ HOT 1
- On-Prem SSM Agent installation FAIL HOT 1
- Pet Cuddle-o-ttron lab Stage 1 Issue with SNS origination number
- AWS SSM LAB2, Stage 3 - needs review for Windows AMI/password retrieval
- Pet-Cuddle-O-Tron | CORS issue between S3 and API gateway HOT 8
- MySQL RDS - Aurora compatibility issue HOT 3
- Advanced Hybrid Directory - STAGE 2E - Connect to the 'client' instance HOT 4
- VPC - EFS - lambda lab instance B not deploying successfully HOT 1
- CatPipeline - STAGE4 - Deploy our Container w/ CodeDeploy - PART1 HOT 2
- Videos are marked private? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-cantrill-io-labs.