{"id":13539331,"url":"https://github.com/aws-cloudformation/aws-cloudformation-templates","last_synced_at":"2025-05-11T05:47:12.554Z","repository":{"id":37677957,"uuid":"47648925","full_name":"aws-cloudformation/aws-cloudformation-templates","owner":"aws-cloudformation","description":"A collection of useful CloudFormation templates ","archived":false,"fork":false,"pushed_at":"2025-04-28T18:33:24.000Z","size":3110,"stargazers_count":4879,"open_issues_count":6,"forks_count":4432,"subscribers_count":289,"default_branch":"main","last_synced_at":"2025-05-11T05:47:07.467Z","etag":null,"topics":["aws-cloudformation","cloudformation-template"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aws-cloudformation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-12-08T20:52:52.000Z","updated_at":"2025-05-10T21:20:27.000Z","dependencies_parsed_at":"2023-02-10T12:31:10.601Z","dependency_job_id":"978a9d7d-6edb-4125-a960-7157fef526fd","html_url":"https://github.com/aws-cloudformation/aws-cloudformation-templates","commit_stats":{"total_commits":326,"total_committers":114,"mean_commits":"2.8596491228070176","dds":0.9171779141104295,"last_synced_commit":"587fb699c6edaf3bb8c0843b4cad6870a02ff042"},"previous_names":["aws-cloudformation/aws-cloudformation-templates","awslabs/aws-cloudformation-templates"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-cloudformation%2Faws-cloudformation-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-cloudformation%2Faws-cloudformation-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-cloudformation%2Faws-cloudformation-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-cloudformation%2Faws-cloudformation-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aws-cloudformation","download_url":"https://codeload.github.com/aws-cloudformation/aws-cloudformation-templates/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253523721,"owners_count":21921818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-cloudformation","cloudformation-template"],"created_at":"2024-08-01T09:01:23.552Z","updated_at":"2025-05-11T05:47:12.535Z","avatar_url":"https://github.com/aws-cloudformation.png","language":"Python","funding_links":[],"categories":["HarmonyOS","Python","others"],"sub_categories":["Windows Manager"],"readme":"# AWS CloudFormation Sample Templates\n\nThis repository contains sample CloudFormation templates that you can use\nto help you get started on new infrastructure projects. Keep in mind that these \ntemplates are not meant to be production-ready \"QuickStarts\". You should \ntake the time to learn how they work, adapt them to your needs, and make sure\nthat they meet your company's compliance standards.\n\nEach template in this repository passes\n[CloudFormation Linter](https://github.com/aws-cloudformation/cfn-lint)\n(cfn-lint) checks, and also a basic set of\n[CloudFormation Guard](https://github.com/aws-cloudformation/cloudformation-guard)\n rules based on the CIS Top 20, with exceptions for some rules where it\nmade sense to keep the sample focused on a single use case.\n\n## Discord\n\nJoin us on Discord to discuss rain and all things CloudFormation! Connect and\ninteract with CloudFormation developers and experts, find channels to discuss\nrain, the CloudFormation registry, StackSets, cfn-lint, Guard and more:\n\n[![Join our Discord](https://discordapp.com/api/guilds/981586120448020580/widget.png?style=banner3)](https://discord.gg/9zpd7TTRwq)\n\n## Submitting Templates\n\nBefore you submit a template, we suggest that you follow these guidelines:\n\n- Fork the repository and create a fresh branch to work on your sample\n  ```\n  git remote add upstream git@github.com:aws-cloudformation/aws-cloudformation-templates.git\n  git fetch upstream\n  git checkout -b my-branch-name upstream/main\n  git push -u origin\n  ```\n- Write the template in YAML, with a `.yaml` suffix (not `.yml` or\n  `.template`). Our test scripts will auto-generate a JSON file based on the\n  YAML. YAML is the source of truth for all templates in this repository.\n- If your solution needs any other type of YAML file, like a K8s manifest \n  or a build spec, give it a `.yml` extension. This will cause it to be skipped\n  by the test scripts.\n- Test your template. Can you successfully create a stack with it?  When you\n  delete a stack, is the stack (and all of its resources) successfully deleted?\n  Make sure users aren't left with stray resources or stacks that have deletion\n  errors.\n- In the Description section, add a brief description of your template. The\n  description should indicate what the template does and why it's useful. For\n  example:\n  ```\n  Description: \"Create a LAMP stack using a single EC2 instance and\n  a local MySQL database for storage. This template demonstrates using the AWS\n  CloudFormation bootstrap scripts to install the packages and files necessary\n  to deploy the Apache web server, PHP, and MySQL when the instance is\n  launched.\"\n  ```\n- Format your template to make it human readable:\n  - Err on the side of human readability. If it makes your template easier to\n    read, do it.\n  - Use cfn-lint to lint your template and make sure it is valid.\n  - Consider using two-space indents to reduce line wrapping.\n- Review IAM resources. If you include IAM resources, follow the standard\n  security advice of granting least privilege (granting only the permissions\n  required to do a task).\n- Remove secrets/credentials from your template. You might hardcode credentials\n  or secrets in your template when you're testing. Don't forget to remove them\n  before submitting your template. You can use this tool to help you scrub\n  secrets:\n  [https://github.com/awslabs/git-secrets](https://github.com/awslabs/git-secrets).\n- Add your template to the correct folder so that others can discover it.\n- Run the `scripts/test-all.sh` script in the directory where you're working to \n  make sure the template is valid.\n- If you write any lambda function code, put it in a separate file and run\n  `pylint` or `eslint` to make sure the code is valid.\n\nWhen your template is ready, submit a pull request. A member of the AWS\norganization will review your request and might suggest changes. \n\n## Additional Resources\n\n### CloudFormation Linter (cfn-lint)\n\nThe [CloudFormation Linter](https://github.com/aws-cloudformation/cfn-lint) is\nan indispensable tool for developing your templates. It should be a part of\nevery developer's workflow, and incorporated into your CI/CD pipelines.\n\nInstall cfn-lint with pip:\n\n```sh\npip install cfn-lint\n```\n\n### CLoudFormation Rain\n\n[Rain](https://github.com/aws-cloudformation/rain) is a command line interface\n(CLI) for CloudFormation that greatly improves the experience for authoring and\ndeploying templates. It has many features, such as creating starter templates\nfor various use cases, interactive deployments, modules, and more.\n\nRain can be installed with Brew:\n\n```sh\nbrew install rain\n```\n\nor if you are a Go user, you can install it like this:\n\n```sh\ngo install github.com/aws-cloudformation/rain/cmd/rain@latest\n```\n\n\nIn the *AWS CloudFormation User Guide*, you can view more information about the\nfollowing topics:\n\n- Learn how to use templates to create AWS CloudFormation stacks using the\n  [AWS Management Console](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stack.html)\n  or\n  [AWS Command Line Interface (AWS CLI)](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-cli-creating-stack.html).\n- To view all the supported AWS resources and their properties, see the\n  [Template Reference](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-reference.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-cloudformation%2Faws-cloudformation-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faws-cloudformation%2Faws-cloudformation-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-cloudformation%2Faws-cloudformation-templates/lists"}