-
Notifications
You must be signed in to change notification settings - Fork 582
Home
Paul Duvall edited this page Apr 29, 2019
·
18 revisions
In this section, you learn where to upload CloudFormation templates so that you can use them publicly via a Launch Stack button or other. There is a CodePipeline that runs in Stelligent's production account that copies all files in this repo to an S3 bucket set to public-read.
- From your user directory, clone this repo (or get the latest via
git pull
)git clone https://github.com/stelligent/cloudformation_templates.git
- Change the directory to
labs
cd ~/cloudformation_templates/labs
- Make a new directory or use an existing directory within
labs
. In this example, I am using_example
mkdir _example
- Change to the new directory
cd _example
- Make an empty CloudFormation template
touch example.yml
- Put the CloudFormation template configuration in this file and save
- After locally testing, commit the code to GitHub
git add ~/cloudformation_templates/labs/_example
git commit -am "new CloudFormation template used in Stelligent blog && git push
- Go to the blog you're editing and put the following in the HTML text (making the approriate changes based on the name of your directory/CloudFormation template name):
<div>```
# Creating a cloudformation_templates panel
1. Create a new folder in this [repo](https://github.com/stelligent/cloudformation_templates/tree/master) or commit files to an existing folder if a similar topic. For example, if you're creating a lab, create a new folder under [labs](https://github.com/stelligent/cloudformation_templates/tree/master/labs).
1. Refer to the previously committed CloudFormation template file
1. Upload the image you downloaded from [CloudFormation Designer](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/working-with-templates-cfn-designer.html) to S3. For example: `https://s3.amazonaws.com/stelligent-public/media/cloudformation-diagrams/ecs-jenkins.jpg`.
1. Create a new section in the CloudFormation Templates [README](https://github.com/stelligent/cloudformation_templates). For example, see [Containerized CI Solutions in AWS: Jenkins in ECS Lab](https://github.com/stelligent/cloudformation_templates#containerized-ci-solutions-in-aws-jenkins-in-ecs-lab). This will include a brief description, create details, launch stack button, design thumbnail/link, video link, and command-line options.