Coder Social home page Coder Social logo

Comments (8)

acantril avatar acantril commented on June 10, 2024

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.

MohamedAYACH avatar MohamedAYACH commented on June 10, 2024

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.

2021-07-08 12_01_42-AWS Systems Manager - Parameter Store and 4 more pages - Work - Microsoftโ€‹ Edge

from learn-cantrill-io-labs.

ryanef avatar ryanef commented on June 10, 2024
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.

acantril avatar acantril commented on June 10, 2024

did you do any different config with the AWS cli ? change the output format or anything ?

from learn-cantrill-io-labs.

acantril avatar acantril commented on June 10, 2024

the change you have made @ryanef look to handle a different structure output from the SSM CLI interaction

from learn-cantrill-io-labs.

ryanef avatar ryanef commented on June 10, 2024

@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.

acantril avatar acantril commented on June 10, 2024

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.

acantril avatar acantril commented on June 10, 2024

closing because no comments.

from learn-cantrill-io-labs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.