{"id":1038,"date":"2022-07-12T12:15:34","date_gmt":"2022-07-12T12:15:34","guid":{"rendered":"https:\/\/www.workfall.com\/learning\/blog\/?p=1038"},"modified":"2025-10-01T04:51:38","modified_gmt":"2025-10-01T04:51:38","slug":"how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances","status":"publish","type":"post","link":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/","title":{"rendered":"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances?"},"content":{"rendered":"<span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<p><img src=\"https:\/\/lh4.googleusercontent.com\/JgVr0fsvGs8oI8-1ZGpiCSMaNap-B8M8H4TBAqPZc_yfhc350sJyJBc3xs_8uvKVKWyz1H1qCx1ZpJ_5zBr6FYWYTfYK8wo8tFj72hAJ0zCXivOZ8S65O_ExoE96cfuqFNGLXxJnUIrk7OVOpwRpjA8\" style=\"width: 1600px;\"><\/p>\n\n\n\n<p class=\"has-text-align-justify\">Almost every developer makes use of environment variables. They are excellent for establishing parameters that alter depending on the system&#8217;s surroundings. Sadly, they struggle to scale. There are methods to accomplish it, but they aren&#8217;t enjoyable. Here&#8217;s why AWS can replace environment variables (or at least reduce your reliance on them). Building contemporary cloud apps is made simple using the AWS Systems Manager Parameter Store.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">A Parameter Store like this would be utilized in a real cloud setup for a variety of purposes, including setting your configuration in Cloud Formation templates. Additionally, if you employ container technologies like ECS and EKS\/Kubernetes, these characteristics would be made available to certain containers as environment variables.<\/p>\n\n\n\n<p>In this blog, we will cover:<\/p>\n\n\n\n<ul><li>What is AWS Systems Manager, its functions &amp; use cases<\/li><li>AWS Systems Manager Parameter Store, its features, &amp; types<\/li><li>What is AWS Elastic Beanstalk?<\/li><li>Hands-on<\/li><li>Conclusion<\/li><\/ul>\n\n\n\n<h2>What is AWS Systems Manager?<\/h2>\n\n\n\n<p class=\"has-text-align-justify\">AWS Systems Manager is a set of tools that can assist you in managing the infrastructure and applications that are hosted on the AWS Cloud. Systems Manager makes it easier to manage applications and resources, speeds up the process of identifying and fixing operational issues, and aids in the safe, scalable management of your AWS resources.<\/p>\n\n\n\n<h2>Functions of Systems Manager<\/h2>\n\n\n\n<p>The following categories are used by the Systems Manager to classify its functions:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/Zf8FMKGCIsk4FErIcD2HtooiA8lQZwBxZ0LtG7rb_w_YCePtBRJrPBN8vm-yv4G87yQ7R3wpzcxzwnkd6D9sJvrDg0JJoONcW2FONsvTDjUJLZNW7aR-S9ewBQNDomRu3dddW7yeO50bCK7ra1_0lz4\" alt=\"Functions of Systems Manager in AWS Elastic Beanstalk\" title=\"Functions of Systems Manager in AWS Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">To know more about AWS Systems Manager, you can check our blog: <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-run-commands-remotely-on-an-ec2-instance-using-aws-systems-manager\/\">How to run commands remotely on an EC2 instance using AWS Systems Manager<\/a><\/p>\n\n\n\n<h2>Common use cases of SSM<\/h2>\n\n\n\n<ul><li>Saving configuration for runtime initialization of Docker containers<\/li><li>Lambda functions and apps, secret-keeping<\/li><li>SSM Parameters utilized in CloudFormation<\/li><\/ul>\n\n\n\n<h2>What is a Parameter?<\/h2>\n\n\n\n<p class=\"has-text-align-justify\">Any piece of information that is saved in the AWS Parameter Store, such as a block of text, a list of names, a password, an AMI ID, a licensing key, and so on, is referred to as a Parameter Store parameter. This information can be securely and centrally referred to in your scripts, instructions, and SSM papers.<\/p>\n\n\n\n<h2>AWS Systems Manager Parameter Store<\/h2>\n\n\n\n<p class=\"has-text-align-justify\">AWS Systems Manager is a tool created to make it easier for you to manage sizable groups of servers installed in the cloud. For instance, it offers remote access to systems, scalability for various administrative activities, remote command execution, and security and patch updates.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Additionally, it offers a function known as the Parameter Store. A great place to keep centralized data like API keys, database strings, passwords, and other configuration information is the parameter store.<br><\/p>\n\n\n\n<h2>Parameter Store Types<\/h2>\n\n\n\n<p>There are three types of Parameter Store types, as mentioned below:<\/p>\n\n\n\n<ul><li><strong>String:<\/strong> Strings are precisely what you would imagine. Any block of text, such as <code>Hello World<\/code>, test, or wow, this is a fantastic blog article, is a string.<\/li><li><strong>StringList:<\/strong> Again, StringList is quite understandable. A StringList is a group of strings that have been separated by commas. Examples of string lists include <code>Tiger,Lion,Puma<\/code> and <code>Venus,Neptune,Saturn<\/code>.<\/li><li><strong>SecureString:<\/strong> API keys and other sensitive data are stored in SecureString. AWS Key Management Service-managed keys are used to encrypt the data included in a SecureString parameter.<\/li><\/ul>\n\n\n\n<h2>How can a company benefit from a Parameter Store?<\/h2>\n\n\n\n<p>These benefits are provided by Parameter Store:<\/p>\n\n\n\n<ul><li>Using hosted secrets management service that is safe, scalable, and requires no management of servers<\/li><li>By separating your data and code, you may strengthen your security posture.<\/li><li>Maintain version control while storing encrypted strings and configuration data in hierarchies<\/li><li>Access control and auditing<\/li><li>Parameter Store is hosted across different Availability Zones within an AWS Region, hence the parameters can be stored safely<\/li><\/ul>\n\n\n\n<h2>Who ought to utilize the Parameter Store?<\/h2>\n\n\n\n<ul><li>Anyone who uses AWS and wishes to handle configuration data in a centralized manner.<br><\/li><li>Software developers who wish to store various logins and reference streams.<br><\/li><li>Administrators who desire notifications when their passwords and secrets are updated or not.<\/li><\/ul>\n\n\n\n<h2>Features of Parameter Store<\/h2>\n\n\n\n<ul><li><strong>Change notification:<\/strong> Both parameters and parameter policies provide the ability to configure change notifications and launch automatic actions.<\/li><\/ul>\n\n\n\n<ul><li><strong>Organize &amp; control access:<\/strong> You can tag each of your parameters separately to make it easier for you to recognize one or more parameters depending on the tags you&#8217;ve given them. You may, for instance, tag parameters for particular environments, divisions, users, groups, or times. By establishing an AWS Identity and Access Management (IAM) policy that details the tags that a user or group can access, you can also limit access to parameters.<\/li><\/ul>\n\n\n\n<ul><li><strong>Label versions: <\/strong>By defining labels, you can give different iterations of your parameter an alias. When there are numerous variants of a parameter, labels might assist you to recall what it is for.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/wf7gMJuNSUERU8QWj56Mp3Mrh8sxdU_8TCo5OsUvlilaHatX2y2hNHS0yAk2BB73rsrha6Kw9I0W5HCnQtFVilpSEyevdR0Ip3d8IQT73iYCEN0n6sdmBUdpcko_W1PMZ0SUf5fOHtzWZrEEhXw\" alt=\"Features of Parameter Store in AWS Elastic Beanstalk\" title=\"Features of Parameter Store in AWS Elastic Beanstalk\"\/><\/figure>\n\n\n\n<ul><li><strong>Data validation:<\/strong> You can define parameters that lead to an Amazon Elastic Compute Cloud (Amazon EC2) instance, and Parameter Store validates these parameters to ensure the intended resource type is referenced, the resource is there, and the customer has the authorization to use the resource.<\/li><\/ul>\n\n\n\n<ul><li><strong>Reference secrets:<\/strong> When using other AWS services that already enable references to Parameter Store parameters, such as AWS Secrets Manager, you can get Secrets Manager secrets thanks to the integration between Parameter Store and AWS Secrets Manager.<\/li><\/ul>\n\n\n\n<ul><li><strong>Accessible from other AWS services:<\/strong> You can use Parameter Store parameters with other Systems Manager capabilities and AWS services to retrieve secrets and configuration data from a central store. Parameters work with Systems Manager capabilities such as Run Command, Automation, and State Manager, capabilities of AWS Systems Manager. You can also reference parameters in a number of other AWS services, including the following:<ul><li><a href=\"https:\/\/www.workfall.com\/learning\/blog\/15-awsome-years-of-amazon-ec2-and-still-going-strong\/\">Amazon Elastic Compute Cloud (Amazon EC2)<\/a><\/li><\/ul><ul><li><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-set-up-aws-copilot-to-build-release-and-operate-containerized-applications-on-ecs-and-fargate-using-a-cli-2\/\">Amazon Elastic Container Service (Amazon ECS)<\/a><\/li><\/ul><ul><li><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-run-commands-remotely-on-an-ec2-instance-using-aws-systems-manager\/\">AWS Secrets Manager<\/a><\/li><li><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-auto-register-and-deregister-ec2-instances-behind-application-load-balancer-alb-using-lambda\/\" target=\"_blank\" rel=\"noreferrer noopener\">AWS Lambda<\/a><\/li><li><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-auto-register-and-deregister-ec2-instances-behind-application-load-balancer-alb-using-lambda\/\" target=\"_blank\" rel=\"noreferrer noopener\">AWS CloudFormation<\/a><\/li><li><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-auto-register-and-deregister-ec2-instances-behind-application-load-balancer-alb-using-lambda\/\" target=\"_blank\" rel=\"noreferrer noopener\">AWS CodeBuild<\/a><\/li><li><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-auto-register-and-deregister-ec2-instances-behind-application-load-balancer-alb-using-lambda\/\" target=\"_blank\" rel=\"noreferrer noopener\">AWS CodePipeline<\/a><\/li><li><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-auto-register-and-deregister-ec2-instances-behind-application-load-balancer-alb-using-lambda\/\" target=\"_blank\" rel=\"noreferrer noopener\">AWS CodeDeploy<\/a><\/li><\/ul><\/li><\/ul>\n\n\n\n<ul><li><strong>Integrate with other AWS services: <\/strong>For encryption, alerting, monitoring, and auditing, configure integration with the following AWS services:<ul><li>AWS Key Management Service (AWS KMS)<\/li><li><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-trigger-lambda-function-using-amazon-cloudwatch-events-and-configure-cloudwatch-alarm-to-get-email-notifications-using-amazon-snspart-2\/\">Amazon Simple Notification Service (Amazon SNS)<\/a><\/li><li><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-trigger-lambda-function-using-amazon-cloudwatch-events-and-configure-cloudwatch-alarm-to-get-email-notifications-using-amazon-sns-part-1\/\">Amazon CloudWatch<\/a><\/li><li><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-build-a-serverless-event-driven-workflow-with-aws-glue-and-amazon-eventbridgepart-2\/\">Amazon EventBridge<\/a><\/li><li><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-track-aws-account-activities-using-aws-cloudtrailpart-1\/\">AWS CloudTrail<\/a><\/li><\/ul><\/li><\/ul>\n\n\n\n<h2>What is AWS Elastic Beanstalk?<\/h2>\n\n\n\n<p class=\"has-text-align-justify\">For delivering and scaling web applications and services created using Java,.NET, PHP, <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-export-data-to-a-csv-file-using-multiple-npm-packages-in-node-js\/\">Node.js<\/a>, Python, Ruby, <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-use-go-modules-for-package-management\/\">Go<\/a>, and <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-install-and-run-docker-container-on-amazon-ec2-instance-part-1\/\">Docker<\/a> on well-known servers like Apache, Nginx, Passenger, and IIS, AWS Elastic Beanstalk is a simple-to-use tool.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Elastic Beanstalk will handle everything from capacity provisioning, load balancing, auto-scaling, and application health monitoring when you simply upload your code. The AWS resources that are powering your application are still completely under your control, and you always have access to them.<\/p>\n\n\n\n<p>Elastic Beanstalk is free; you just pay for the AWS resources required to store and run your apps.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">If you want to know more about AWS Elastic Beanstalk, refer to our blog: <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-1\/\">How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 1)?<\/a><\/p>\n\n\n\n<h2>Hands-on<\/h2>\n\n\n\n<p>For this example, we will use a Node.js application deployed on Elastic Beanstalk.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">In order to ensure the safety of some vital information such as API keys and login credentials, it is a good practice not to include them in your code.&nbsp;<\/p>\n\n\n\n<p class=\"has-text-align-justify\">The typical best practice is to use a .env file and then add it to .gitignore so that the changes in the file are not tracked. It might be a tragedy for your API keys for example to end up somewhere in a public repository.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">The most common way to do this is to manually copy the .env file to the server you are deploying the application and export the variables in the shell running the \u201cstart script\u201d so that the Node.js application can have access to them at runtime.<\/p>\n\n\n\n<p>Elastic Beanstalk provides a way to add environment variables that the application you are deploying will use.<\/p>\n\n\n\n<h3>Problem Statement<\/h3>\n\n\n\n<p>Elastic Beanstalk environments have a size limit of 4096Kb. If that limit is reached, you cannot add further environment variables, which is frustrating.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/kBvPfb4uJvajWT_52y-eFhWKOSnsNHbOYyNI-eWaiiM_oxtuV_MMaGyxuitnT_Nr45hcOFU_MjtMic2EWJZVvGeayracOdgSbSeLeVOtxtHivCtw-Q6Ah40x0lHBlEHuW546Bdmu0xWeUSA8X9c\" alt=\"Hands On Learning the AWS Elastic Beanstalk Instances\" title=\"Hands On Learning the AWS Elastic Beanstalk Instances\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">For this solution, we will use Platform Hooks combined with a pre-deployment script to create a .env file for PM2 to use. To know more about platform hooks, refer <a href=\"https:\/\/docs.aws.amazon.com\/elasticbeanstalk\/latest\/dg\/platforms-linux-extend.html\">here<\/a>. The pre-deployment script in our case runs in the pipeline which creates a .env file and we\u2019ve zipped it together with the other artifacts which will be deployed on Elastic Beanstalk.<\/p>\n\n\n\n<p>Create a <code>\u201c.platform\u201d<\/code> folder at the root of our application repository. Use the following structure:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n~\/my-app\/\n|-- README.md\n`-- .platform\/\n    |-- hooks\/ # Application deployment hooks \n    |   `-- postdeploy\/\n    |       `-- map_parameters_to_env_vars.sh \n     `-- confighooks\/ # Configuration deployment hooks\n         `-- postdeploy\/\n             `-- map_parameters_to_env_vars.sh\n<\/pre><\/div>\n\n\n<p>The <code>map_parameters_to_env_vars.sh<\/code> file is as follows:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n#!\/bin\/bash\n\n# exit on any failure\nset -e\n# keep track of the last executed command\ntrap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG\n# echo an error message before exiting (seems to happen on error or success?)\ntrap 'echo &quot;\\&quot;${last_command}\\&quot; command completed with exit code $?.&quot;' EXIT\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# \nhttps:\/\/docs.aws.amazon.com\/elasticbeanstalk\/latest\/dg\/platforms-linux-extend.html\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\necho &quot;map_parameters_to_env_vars.sh executing&quot;\necho &quot;Running script to fetch parameter store values and add them to \/opt\/elasticbeanstalk\/deployment\/env file.&quot;\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# We need to check the Elastic Beanstalk environment properties to find out\n# what the path is to use for the parameter store values to fetch.\n# Only the parameters under that path will be fetched, allowing each Beanstalk\n# config to specify a different path if desired.\napt install jq\nreadarray eb_env_vars &lt; \/opt\/elasticbeanstalk\/deployment\/env\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfor i in ${eb_env_vars&#091;@]}\ndo\n    if &#091;&#091; $i == *&quot;parameter_store_path&quot;* ]]; then\n        parameter_store_path=$(echo $i | grep -Po &quot;(&#091;^\\=]*$)&quot;)\n    fi\ndone\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nif &#091; -z ${parameter_store_path+x} ]; then\n    echo &quot;Error: parameter_store_path is unset on the Elastic Beanstalk environment properties.&quot;;\n    echo &quot;You must add a property named parameter_store_path with the path prefix to your SSM parameters.&quot;;\nelse\n    echo &quot;Success: parameter_store_path is set to '$parameter_store_path'&quot;;\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n    # AWS_REGION=&quot;us-east-1&quot;\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n  # export AWS_REGION\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n #Create a copy of the environment variable file.\n    cp \/opt\/elasticbeanstalk\/deployment\/env \/opt\/elasticbeanstalk\/deployment\/custom_env_var\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n # Add values to the custom file\n    # echo &quot;AWS_REGION=$AWS_REGION&quot; &gt;&gt; \/opt\/elasticbeanstalk\/deployment\/custom_env_var\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# jq_actions=$(echo -e &quot;.Parameters | .&#091;] | &#091;.Name, .Value] | \\042\\(.&#091;0])=\\(.&#091;1])\\042 | sub(\\042${parameter_store_path}\/\\042; \\042\\042)&quot;)\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\naws ssm get-parameters-by-path \\\n    --path $parameter_store_path \\\n    --parameter-filters Key=Label,Values=YourLabel,Option=Equals \\\n    --with-decryption \\\n    --recursive \\\n    --region us-east-1 \\\n    --output json \\\n    | jq -r '.Parameters&#091;] | &quot;\\(.Name)=\\(.Value)&quot;' &gt;&gt; \/opt\/elasticbeanstalk\/deployment\/custom_env_var\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n cp \/opt\/elasticbeanstalk\/deployment\/custom_env_var \/opt\/elasticbeanstalk\/deployment\/env\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n export $(cat \/opt\/elasticbeanstalk\/deployment\/env | xargs)\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n #Remove temporary working file.\n    rm -f \/opt\/elasticbeanstalk\/deployment\/custom_env_var\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n #Remove duplicate files upon deployment.\n    rm -f \/opt\/elasticbeanstalk\/deployment\/*.bak\n    \nfi\n<\/pre><\/div>\n\n\n<p>N\/B: parameter_store_path must be set on Elastic Beanstalk environment properties<\/p>\n\n\n\n<p>To access the EB environment properties, click on Configuration on the left navigation then click on Edit under the Software category.<\/p>\n\n\n\n<p><img src=\"https:\/\/lh6.googleusercontent.com\/j69CS5GT_M6DE8heKrmRZkLuVF2UW_C1pdxSZmcZLFlk8wI1LJyTHonOb6kqMFUcov-ld9TPVUIwOusxMnw8ayP3gagU7wfBuEn3QVeQNhWfc14YlXP2DzIRcUfVOdYBwpzZAusPtEAlVnEdShY\" style=\"width: 1600px;\"><\/p>\n\n\n\n<p><img src=\"https:\/\/lh6.googleusercontent.com\/bhcqN5KBNkQSx8FA8ioGSmCNYMdnr0pr1noTZdXbRzAygDoy3XPMGsHmVg72GmJ_y2ovCw6AzKw8ETS_Do5S9vtMB9aESGBZ6fGGcf32Tp63miYOvYZsN5DPppitM0jrv1LNw2mA1RVH3KBSYsU\" style=\"width: 1600px;\"><\/p>\n\n\n\n<p class=\"has-text-align-justify\">The above solution will still spin up an unhealthy instance on Elastic Beanstalk, this is where the pre-deployment script comes in.<\/p>\n\n\n\n<p>The pre-deployment script <code>.deploy-prep.sh<\/code> is as follows:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n#!\/bin\/bash\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# exit on any failure\nset -e\n# keep track of the last executed command\ntrap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG\n# echo an error message before exiting (seems to happen on error or success?)\ntrap 'echo &quot;\\&quot;${last_command}\\&quot; command completed with exit code $?.&quot;' EXIT\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nexport DEBIAN_FRONTEND=noninteractive\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\napt-get update &amp;&amp; \\\napt-get install -y \\\n    apt-utils \\\n    curl \\\n    git \\\n    python3 python3-dev python3-pip libpython3-dev \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nawscli \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nrpl \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nbuild-essential \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nlibkrb5-dev \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nlocales \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\njq \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nzip unzip &amp;&amp; \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\napt-get clean &amp;&amp; \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nrm -rf \/var\/lib\/apt\/lists\/* \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;&amp; localedef -i en_US -c -f UTF-8 -A \/usr\/share\/locale\/locale.alias \n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nen_US.UTF-8\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nexport LANG=en_US.UTF-8\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nexport PATH=\/root\/.local\/bin:$PATH\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npython3 --version\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncurl -O https:\/\/bootstrap.pypa.io\/pip\/3.5\/get-pip.py\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npython3 get-pip.py --user\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npip --version\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npip install awsebcli --upgrade --user\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ntouch .env\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npip3 install --upgrade awscli\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\naws ssm get-parameters-by-path \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n--path \/ \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n--parameter-filters Key=Label,Values=YourLabel,Option=Equals \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n--with-decryption \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n--recursive \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n--region us-east-1 \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n--output json \\\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n| jq -r '.Parameters&#091;] | &quot;\\(.Name)=\\(.Value)&quot;' &gt;&gt; .env\n<\/pre><\/div>\n\n\n<p class=\"has-text-align-justify\">Last but not least, we have to update the \u201cstart\u201d script in package.json to declare the variables in the shell environment for PM2 to use (your script might be different):<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&quot;start&quot;: &quot;export $(cat .env | xargs) &amp;&amp; node dist\/main&quot;,\n<\/pre><\/div>\n\n\n<p class=\"has-text-align-justify\">To ascertain that the scripts have been executed, check the elastic Beanstalk logs. The screenshots are as shown below:<\/p>\n\n\n\n<p><img src=\"https:\/\/lh4.googleusercontent.com\/aRilEGmgyA7kyI0looXGe_BGEvEd1s1roZeVH1GBUXN1comzjNcaNoVqdiBUykKmnxVPl-cDuQOUl3x5RhIw_ji_FiB-SQsq2kEgN1SHCm0S0UM-f0GPkUwJQA-Yo_GlYWtN9g-CuKyGjwbfIU4\" style=\"width: 1600px;\"><\/p>\n\n\n\n<p class=\"has-text-align-justify\">Click on the request logs dropdown to pick either full logs or the first 100 lines (Full logs are more detailed and categorized hence recommended). Click download and a zip file will be downloaded to your computer then extract the zip file to view its contents.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">There are two log files that will be of interest: <code>eb-engine.log<\/code> and <code>eb-hooks.log<\/code>. <code>Eb-engine.log<\/code> will be the go-to in case the deployment fails when the script does not execute successfully and <code>eb-hooks.log<\/code> will keep track of all the executed commands in the platform hooks.<\/p>\n\n\n\n<p><img src=\"https:\/\/lh6.googleusercontent.com\/B_HhrLm1ZMAiOiFoTkSUawY0VWyKK5rXPNjxwfs-2cDSnBzHQ2pb0fAf90-QSo4A9-Ym9KgQrVG43WEBz91wFJQhVvHQcv8QoWUJ4OSEooUxzgNL7osel8A9x9sUiQxzN07Yyuo0o0z7syDumxk\" style=\"width: 1600px;\"><\/p>\n\n\n\n<p><img src=\"https:\/\/lh5.googleusercontent.com\/0atlpsQLYqOA5kQBnYHXx20Wavy-7KlUOCEBR99GbKul83WtzYWM63rTo19_SU_5bmzk0ExvF25su_JTmNzXa3A0kNzueI-M8gw-2RSHQzdnumdBnOUzYQsrmw6cj5Hhib7-JdUk7t0mRBAfDN8\" style=\"width: 1600px;\"><\/p>\n\n\n\n<h2>Conclusion<\/h2>\n\n\n\n<p class=\"has-text-align-justify\">In this blog, we explored what is a Parameter, AWS Systems Manager, its functions, common use case, AWS Systems Manager Parameter Store, its types, features, and Elastic Beanstalk. Moreover, we demonstrated how to operate a Node.js application installed on Elastic Beanstalk. We will come up with more such use cases in our upcoming blogs.<\/p>\n\n\n\n<p><strong>Meanwhile \u2026<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">If you are an aspiring AWS Professional and want to explore more about the above topics, here are a few of our blogs for your reference:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/\">How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)?<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-create-ci-cd-workflow-using-aws-codestar\/\">How to create CI\/CD workflow using AWS CodeStar?<\/a><\/p>\n\n\n\n<p>Stay tuned to get all the updates about our upcoming blogs on the cloud and the latest technologies.<\/p>\n\n\n\n<p><strong>Keep Exploring -&gt; Keep Learning -&gt; Keep Mastering&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">At <a href=\"https:\/\/www.workfall.com\/\">Workfall<\/a>, we strive to provide the best tech and pay opportunities to kickass coders around the world. If you\u2019re looking to work with global clients, build cutting-edge products and make big bucks doing so, give it a shot at <a href=\"https:\/\/www.workfall.com\/partner\/\">workfall.com\/partner<\/a> today!<\/p>\n\n\n\n<p><\/p>\n\n\n<style type=\"text\/css\"><\/style><section id='' \n                class='helpie-faq accordions faq-toggle open-first groupSettings-536__enabled' \n                data-collection='' \n                data-pagination='0' \n                data-search='0' \n                data-pagination-enabled='0'\n                role='region'\n                aria-label='FAQ Section'\n                aria-live='polite'><h3 class=\"collection-title\">Frequently Asked Questions:<\/h3><article class=\"accordion \"><div class='helpie-faq-row'><div class='helpie-faq-col helpie-faq-col-12' ><ul><li class=\"accordion__item \"><div class=\"accordion__header \" \r\n                id=\"accordion-header-post-3081\"\r\n                role=\"button\"\r\n                aria-expanded=\"false\"\r\n                aria-controls=\"accordion-content-post-3081\"\r\n                data-id=\"post-3081\" \r\n                data-item=\"hfaq-post-3081\" \r\n                style=\"background:transparent;\" \r\n                data-tags=\"\"\r\n                tabindex=\"0\"><div class=\"accordion__title\">Q. What is AWS SSM Parameter Store?<\/div><\/div><div id=\"accordion-content-post-3081\" \r\n                class=\"accordion__body\" \r\n                role=\"region\"\r\n                aria-labelledby=\"accordion-header-post-3081\"\r\n                style=\"background:transparent;\"><p><span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span><span style=\"font-weight: 400\">\u00a0It\u2019s a secure service for storing configuration values and secrets, such as DB credentials or API keys.<\/span><\/p>\n<\/div><\/li><li class=\"accordion__item \"><div class=\"accordion__header \" \r\n                id=\"accordion-header-post-3082\"\r\n                role=\"button\"\r\n                aria-expanded=\"false\"\r\n                aria-controls=\"accordion-content-post-3082\"\r\n                data-id=\"post-3082\" \r\n                data-item=\"hfaq-post-3082\" \r\n                style=\"background:transparent;\" \r\n                data-tags=\"\"\r\n                tabindex=\"0\"><div class=\"accordion__title\">Q. Why use Parameter Store with Elastic Beanstalk?<\/div><\/div><div id=\"accordion-content-post-3082\" \r\n                class=\"accordion__body\" \r\n                role=\"region\"\r\n                aria-labelledby=\"accordion-header-post-3082\"\r\n                style=\"background:transparent;\"><p><span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span><span style=\"font-weight: 400\">\u00a0It centralizes config management, keeps secrets secure, and makes apps portable across environments.<\/span><\/p>\n<\/div><\/li><li class=\"accordion__item \"><div class=\"accordion__header \" \r\n                id=\"accordion-header-post-3083\"\r\n                role=\"button\"\r\n                aria-expanded=\"false\"\r\n                aria-controls=\"accordion-content-post-3083\"\r\n                data-id=\"post-3083\" \r\n                data-item=\"hfaq-post-3083\" \r\n                style=\"background:transparent;\" \r\n                data-tags=\"\"\r\n                tabindex=\"0\"><div class=\"accordion__title\">Q. How can Elastic Beanstalk apps access parameters?<\/div><\/div><div id=\"accordion-content-post-3083\" \r\n                class=\"accordion__body\" \r\n                role=\"region\"\r\n                aria-labelledby=\"accordion-header-post-3083\"\r\n                style=\"background:transparent;\"><p><span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span><span style=\"font-weight: 400\">\u00a0By using the AWS SDK in application code, or by configuring environment variables at runtime that read from Parameter Store.<\/span><\/p>\n<\/div><\/li><li class=\"accordion__item \"><div class=\"accordion__header \" \r\n                id=\"accordion-header-post-3084\"\r\n                role=\"button\"\r\n                aria-expanded=\"false\"\r\n                aria-controls=\"accordion-content-post-3084\"\r\n                data-id=\"post-3084\" \r\n                data-item=\"hfaq-post-3084\" \r\n                style=\"background:transparent;\" \r\n                data-tags=\"\"\r\n                tabindex=\"0\"><div class=\"accordion__title\">Q. How do you handle sensitive parameters like passwords?<\/div><\/div><div id=\"accordion-content-post-3084\" \r\n                class=\"accordion__body\" \r\n                role=\"region\"\r\n                aria-labelledby=\"accordion-header-post-3084\"\r\n                style=\"background:transparent;\"><p><span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span><span style=\"font-weight: 400\">\u00a0Store them as \u201cSecureString\u201d in Parameter Store with KMS encryption, and ensure the Beanstalk EC2 role has IAM permission to decrypt.<\/span><\/p>\n<\/div><\/li><li class=\"accordion__item \"><div class=\"accordion__header \" \r\n                id=\"accordion-header-post-3085\"\r\n                role=\"button\"\r\n                aria-expanded=\"false\"\r\n                aria-controls=\"accordion-content-post-3085\"\r\n                data-id=\"post-3085\" \r\n                data-item=\"hfaq-post-3085\" \r\n                style=\"background:transparent;\" \r\n                data-tags=\"\"\r\n                tabindex=\"0\"><div class=\"accordion__title\">Q. What\u2019s the difference between Parameter Store and AWS Secrets Manager?<\/div><\/div><div id=\"accordion-content-post-3085\" \r\n                class=\"accordion__body\" \r\n                role=\"region\"\r\n                aria-labelledby=\"accordion-header-post-3085\"\r\n                style=\"background:transparent;\"><p><span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span><span style=\"font-weight: 400\">\u00a0Secrets Manager is more advanced (auto-rotation, RDS integration), while Parameter Store is simpler and cheaper, suitable for most configs.<\/span><\/p>\n<\/div><\/li><\/ul><\/div><\/div><\/article><\/section>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span> Almost every developer makes use of environment variables. They are excellent for establishing parameters that alter depending on the system&#8217;s surroundings. Sadly, they struggle to scale. There are methods to accomplish it, but they aren&#8217;t enjoyable. Here&#8217;s why AWS can replace environment variables (or at least reduce your reliance on them). Building contemporary cloud apps [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1043,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[2],"tags":[3,317,4,226,265,250,6],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances? - Workfall<\/title>\n<meta name=\"description\" content=\"AWS SSM Parameter Store - Building contemporary cloud apps is made simple using the AWS Systems Manager Parameter Store. If you want to know how to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances, this blog is for you!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances?\" \/>\n<meta property=\"og:description\" content=\"AWS SSM Parameter Store - Building contemporary cloud apps is made simple using the AWS Systems Manager Parameter Store. If you want to know how to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances, this blog is for you!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/\" \/>\n<meta property=\"og:site_name\" content=\"The Workfall Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/workfall\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-12T12:15:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-01T04:51:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/Cover-Images_Part2-1-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances?\" \/>\n<meta name=\"twitter:description\" content=\"AWS SSM Parameter Store - Building contemporary cloud apps is made simple using the AWS Systems Manager Parameter Store. If you want to know how to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances, this blog is for you!\" \/>\n<meta name=\"twitter:creator\" content=\"@workfall\" \/>\n<meta name=\"twitter:site\" content=\"@workfall\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Workfall\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\",\"name\":\"Workfall - Hire #Kickass Coders On Demand\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/\",\"sameAs\":[\"https:\/\/www.instagram.com\/workfall\/\",\"https:\/\/www.linkedin.com\/company\/workfall\/\",\"https:\/\/facebook.com\/workfall\",\"https:\/\/twitter.com\/workfall\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400\",\"contentUrl\":\"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400\",\"width\":400,\"height\":400,\"caption\":\"Workfall - Hire #Kickass Coders On Demand\"},\"image\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#website\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/\",\"name\":\"The Workfall Blog\",\"description\":\"#Tech #Remote #Jobs\",\"publisher\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learning.workfall.com\/learning\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#primaryimage\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/Cover-Images_Part2-1-1.png\",\"contentUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/Cover-Images_Part2-1-1.png\",\"width\":1200,\"height\":628,\"caption\":\"AWS SSM Parameter Store in AWS Elastic Beanstalk instances\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#webpage\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/\",\"name\":\"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances? - Workfall\",\"isPartOf\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#primaryimage\"},\"datePublished\":\"2022-07-12T12:15:34+00:00\",\"dateModified\":\"2025-10-01T04:51:38+00:00\",\"description\":\"AWS SSM Parameter Store - Building contemporary cloud apps is made simple using the AWS Systems Manager Parameter Store. If you want to know how to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances, this blog is for you!\",\"breadcrumb\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/learning.workfall.com\/learning\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances?\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#webpage\"},\"author\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a\"},\"headline\":\"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances?\",\"datePublished\":\"2022-07-12T12:15:34+00:00\",\"dateModified\":\"2025-10-01T04:51:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#webpage\"},\"wordCount\":1745,\"publisher\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/Cover-Images_Part2-1-1.png\",\"keywords\":[\"AWS\",\"AWS SSM\",\"Cloud\",\"elastic beanstalk\",\"node\",\"nodeJS\",\"workfall\"],\"articleSection\":[\"AWS Cloud Computing\"],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a\",\"name\":\"Workfall\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png\",\"contentUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png\",\"caption\":\"Workfall\"},\"sameAs\":[\"https:\/\/www.workfall.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances? - Workfall","description":"AWS SSM Parameter Store - Building contemporary cloud apps is made simple using the AWS Systems Manager Parameter Store. If you want to know how to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances, this blog is for you!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/","og_locale":"en_US","og_type":"article","og_title":"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances?","og_description":"AWS SSM Parameter Store - Building contemporary cloud apps is made simple using the AWS Systems Manager Parameter Store. If you want to know how to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances, this blog is for you!","og_url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/","og_site_name":"The Workfall Blog","article_publisher":"https:\/\/facebook.com\/workfall","article_published_time":"2022-07-12T12:15:34+00:00","article_modified_time":"2025-10-01T04:51:38+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/Cover-Images_Part2-1-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_title":"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances?","twitter_description":"AWS SSM Parameter Store - Building contemporary cloud apps is made simple using the AWS Systems Manager Parameter Store. If you want to know how to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances, this blog is for you!","twitter_creator":"@workfall","twitter_site":"@workfall","twitter_misc":{"Written by":"Workfall","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization","name":"Workfall - Hire #Kickass Coders On Demand","url":"https:\/\/learning.workfall.com\/learning\/blog\/","sameAs":["https:\/\/www.instagram.com\/workfall\/","https:\/\/www.linkedin.com\/company\/workfall\/","https:\/\/facebook.com\/workfall","https:\/\/twitter.com\/workfall"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400","contentUrl":"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400","width":400,"height":400,"caption":"Workfall - Hire #Kickass Coders On Demand"},"image":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#website","url":"https:\/\/learning.workfall.com\/learning\/blog\/","name":"The Workfall Blog","description":"#Tech #Remote #Jobs","publisher":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learning.workfall.com\/learning\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#primaryimage","url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/Cover-Images_Part2-1-1.png","contentUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/Cover-Images_Part2-1-1.png","width":1200,"height":628,"caption":"AWS SSM Parameter Store in AWS Elastic Beanstalk instances"},{"@type":"WebPage","@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#webpage","url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/","name":"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances? - Workfall","isPartOf":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#primaryimage"},"datePublished":"2022-07-12T12:15:34+00:00","dateModified":"2025-10-01T04:51:38+00:00","description":"AWS SSM Parameter Store - Building contemporary cloud apps is made simple using the AWS Systems Manager Parameter Store. If you want to know how to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances, this blog is for you!","breadcrumb":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learning.workfall.com\/learning\/blog\/"},{"@type":"ListItem","position":2,"name":"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances?"}]},{"@type":"Article","@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#article","isPartOf":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#webpage"},"author":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a"},"headline":"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances?","datePublished":"2022-07-12T12:15:34+00:00","dateModified":"2025-10-01T04:51:38+00:00","mainEntityOfPage":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#webpage"},"wordCount":1745,"publisher":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization"},"image":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/#primaryimage"},"thumbnailUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/Cover-Images_Part2-1-1.png","keywords":["AWS","AWS SSM","Cloud","elastic beanstalk","node","nodeJS","workfall"],"articleSection":["AWS Cloud Computing"],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a","name":"Workfall","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/image\/","url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png","contentUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png","caption":"Workfall"},"sameAs":["https:\/\/www.workfall.com"]}]}},"jetpack_featured_media_url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/Cover-Images_Part2-1-1.png","jetpack-related-posts":[{"id":1083,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-deploy-nestjs-microservices\/","url_meta":{"origin":1038,"position":0},"title":"How to Deploy NestJS Microservices to AWS Elastic Beanstalk?","date":"July 26, 2022","format":false,"excerpt":"AWS Elastic Beanstalk is an AWS service on which you can deploy your application and it offers orchestration for various AWS services such as EC2, and S3 out of the box through auto-scaling, load-balancing, and capacity provisioning. All you have to do is upload your code and AWS Elastic Beanstalk\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"How to Deploy NestJS Microservices to AWS Elastic Beanstalk?","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/NestJS.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":675,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-1\/","url_meta":{"origin":1038,"position":1},"title":"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 1)?","date":"November 24, 2021","format":false,"excerpt":"Do you have concerns about managing and deploying web applications? With AWS Elastic Beanstalk, you can launch your full web application in just a few minutes by simply uploading the code. Starting with capacity provisioning, load balancing, auto-scaling, and application health monitoring, this service will take care of the whole\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"AWS Elastic Beanstalk - Workfall","src":"https:\/\/i2.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-6.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":679,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/","url_meta":{"origin":1038,"position":2},"title":"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)?","date":"November 26, 2021","format":false,"excerpt":"AWS Elastic Beanstalk allows us to quickly deploy and manage applications without having to worry about the underlying infrastructure. One of its major benefits is that it reduces the complexity of management of the infrastructure without any restrictions thereby making it easy for developers to focus on just building the\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"Application on AWS Elastic Beanstalk","src":"https:\/\/i2.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-7.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":456,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-run-commands-remotely-on-an-ec2-instance-using-aws-systems-manager\/","url_meta":{"origin":1038,"position":3},"title":"How to run commands remotely on an EC2 instance using AWS Systems Manager?","date":"November 9, 2021","format":false,"excerpt":"If you are a System administrator and assigned a task to upgrade the packages for one application running on an EC2 instance, but due to some security restrictions, you are not permitted to access production instances via SSH or bastion host. In this situation, you can use AWS Systems Manager\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"AWS Systems Manager","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/Systemsmanager.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1066,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-architect-nestjs-microservices-with-aws-elastic-beanstalk\/","url_meta":{"origin":1038,"position":4},"title":"Architect NestJS Microservices with AWS Elastic Beanstalk","date":"July 19, 2022","format":false,"excerpt":"In the AWS Cloud journey, we come across Elastic Beanstalk to be better than other services in managing the infrastructure environments effectively. On the other hand, NestJS is popular in creating efficient and scalable server-side applications, and is relatively a new option for the backend framework - it is lightweight,\u2026","rel":"","context":"In &quot;Backend Development&quot;","img":{"alt_text":"Architect NestJS Microservices with AWS Elastic Beanstalk","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/NestJS-Microservices-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":361,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-ci-cd-workflow-using-aws-codestar\/","url_meta":{"origin":1038,"position":5},"title":"How to create CI\/CD workflow using AWS CodeStar?","date":"November 3, 2021","format":false,"excerpt":"DevOps and CI\/CD are the future of software development. AWS CodeStar makes building a full CI\/CD workflow easier and helps us to create a CI\/CD toolchain using AWS developer tools - CodeCommit, CodeBuild, and CodePipeline In this blog we will demonstrate how to create CI\/CD workflow using AWS CodeStar. Before\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"Create CI\/CD workflow using AWS CodeStar","src":"https:\/\/i2.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CodeStar.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/1038"}],"collection":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/comments?post=1038"}],"version-history":[{"count":9,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/1038\/revisions"}],"predecessor-version":[{"id":3087,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/1038\/revisions\/3087"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/media\/1043"}],"wp:attachment":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/media?parent=1038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/categories?post=1038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/tags?post=1038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}