Hub rules-cloudformation

rules-cloudformation

v5 public Verified

Cloudformation

AWS CloudFormation is an Infrastructure as Code (IaC) service for provisioning and managing AWS resources using templates. These rules guide AI agents in defining, deploying, and managing complex AWS stacks and resource dependencies.

@sigmashakeinc 2 pulls 8 rules published Apr 8, 2026 synced Oct 11, 2026 sigmashakeinc/rules/rulesets/rules-cloudformation →
Severity
5 error 2 warn 1 info
demo.cast
AWS CloudFormation is an Infrastructure as Code (IaC) service for provisioning and managing AWS resources using templates. These rules guide AI agents in defining, deploying, and managing complex AWS stacks and resource dependencies.

Rules index

8 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

cloudformation

cloudformation-block-unsafe-patterns warning ask

AWS::IAM::AccessKey embeds long-term credentials in a stack. Prefer IAM Roles and instance profiles. If an access key is truly required, store the secret output in Secrets Manager — never output it as a plain CloudFormation Output value.

Rule source requires an active Pro or Enterprise subscription.
cloudformation-force-updated-api info log

CloudFormation template detected. Verify the template is using current resource types and properties. Check for deprecated resource types (e.g., AWS::OpsWorks::*) and ensure drift detection is enabled on your stacks.

Rule source requires an active Pro or Enterprise subscription.
cloudformation-hardcoded-secret-parameter error block

Hardcoded secret value detected in CloudFormation template. Secrets in templates are stored in CloudFormation state (S3/DynamoDB) in plaintext. Use AWS::SecretsManager::Secret or AWS Systems Manager Parameter Store (SecureString type) with dynamic references: '{{resolve:secretsmanager:MySecret:SecretString:password}}'. Never put real credentials in Default values or literal property strings.

Rule source requires an active Pro or Enterprise subscription.
cloudformation-missing-encryption-rds warning log

RDS instance/cluster template does not set StorageEncrypted. Unencrypted RDS volumes expose data at rest if the underlying EBS volume is accessed. Add 'StorageEncrypted: true' and specify a KMSKeyId for customer-managed key control.

Rule source requires an active Pro or Enterprise subscription.
cloudformation-rds-publicly-accessible error block

RDS/Redshift/ElastiCache with PubliclyAccessible: true exposes the database endpoint to the public internet. Remove internet access and instead route traffic through a VPC, bastion host, or AWS Session Manager. Exposed database ports are a critical attack surface.

Rule source requires an active Pro or Enterprise subscription.
cloudformation-s3-public-access error block

S3 public block access is disabled. Public S3 buckets are a leading cause of data breaches. Unless this is a static website bucket with intentional public content, set all four BlockPublicAcls/BlockPublicPolicy/IgnorePublicAcls/RestrictPublicBuckets to true.

Rule source requires an active Pro or Enterprise subscription.
cloudformation-wildcard-iam-action error block

Wildcard IAM Action (Action: '*') grants every AWS action to the principal — equivalent to root access. Restrict to the minimum required actions (CWE-250, AWS Well-Architected least privilege). Replace with the specific action list needed.

Rule source requires an active Pro or Enterprise subscription.
cloudformation-wildcard-iam-resource error block

Wildcard IAM Resource (Resource: '*') applies the policy to every resource in the account. Scope the resource ARN to the specific resource(s) the role actually manages (CWE-250). Use ARN conditions like 'arn:aws:s3:::my-bucket/*' instead.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v5
Published
Apr 8, 2026
Source commits
0
Synced
Oct 11, 2026
Hash
2883753ab2da0b3ed5463e6f8ccafebd0e7b6c4b33a4126130cde9f84f344bbe
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-cloudformation/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-cloudformation. The published version only bumps when a maintainer resyncs.

No commit history available.