Articles → AWS → Reference CloudFormation Parameters From The AWS System Manager Parameter Store

Reference CloudFormation Parameters From The AWS System Manager Parameter Store






What Is The AWS Systems Manager Parameter Store?





Create A Parameter In The Parameter Store




Picture showing the parameter store service in search result




Picture showing the Create Parameter button for creating the new parameter




Picture showing the Create parameter screen for creating the new parameter




Picture showing the parameter created in parameter store



Create A YAML File




AWSTemplateFormatVersion: '2010-09-09'
Description: Create an S3 bucket with a name fetched from Parameter Store

Parameters:
  BucketNameParameter:
    Type: AWS::SSM::Parameter::Value<String>
    Default: /my-app/bucket-name
    Description: The name of the S3 bucket stored in Parameter Store

Resources:
  S3Bucket:
    Type: AWS::S3::Bucket
    Properties:
      BucketName: !Ref BucketNameParameter

Outputs:
  BucketName:
    Description: The name of the created S3 bucket
    Value: !Ref S3Bucket





Create A Cloudformation Stack




Picture showing specifying the parameter while creating the stack



Output


Picture showing the bucket created using the parameter store



Posted By  -  Karan Gupta
 
Posted On  -  Sunday, February 16, 2025

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250