Skip to content

Instantly share code, notes, and snippets.

@rubendob
rubendob / tag.yml
Last active September 2, 2020 16:09
CloudCustodian Tagging Simple Policy - How write simple policy, execute and report by command line
---
policies:
- name: ec2-tag-policy
resource: aws.ec2
filters:
- or:
- "tag:Project": absent
- "tag:Team": absent
@rubendob
rubendob / cloudformation_resources.txt
Last active September 2, 2020 15:42
Found via:https://summitroute.com; git clone --depth=1 https://github.com/awsdocs/aws-cloudformation-user-guide.git; cd aws-cloudformation-user-guide; grep -h "# AWS::" doc_source/aws-* | sed 's/# //' | sed 's/<.*//' | sort | uniq
##AWS::ApiGateway::Method Dependency
AWS::ACMPCA::Certificate
AWS::ACMPCA::Certificate Validity
AWS::ACMPCA::CertificateAuthority
AWS::ACMPCA::CertificateAuthority CrlConfiguration
AWS::ACMPCA::CertificateAuthority RevocationConfiguration
AWS::ACMPCA::CertificateAuthority Subject
AWS::ACMPCA::CertificateAuthorityActivation
AWS::AccessAnalyzer::Analyzer
AWS::AccessAnalyzer::Analyzer ArchiveRule
@rubendob
rubendob / aws_config_resources.txt
Created September 2, 2020 15:45
Found via https://summitroute.com/; Found by copying the HTML of https://docs.aws.amazon.com/config/latest/developerguide/resource-config-reference.html to a file and running: grep "AWS::" tmp.txt | grep -v "," | grep -v "\." | sed 's/.*AWS:/AWS:/' | sed 's/<.*//' | sort
AWS::ACM::Certificate
AWS::ApiGateway::RestApi
AWS::ApiGateway::Stage
AWS::ApiGatewayV2::Api
AWS::ApiGatewayV2::Stage
AWS::AutoScaling::AutoScalingGroup
AWS::AutoScaling::LaunchConfiguration
AWS::AutoScaling::ScalingPolicy
AWS::AutoScaling::ScheduledAction
AWS::CloudFormation::Stack
@rubendob
rubendob / wordpress.conf
Created October 3, 2025 08:09
Nginx for Wordpress
server {
listen 443 ssl;
access_log /var/log/nginx/access.log main;
# Use a generic placeholder, not your real domain
server_name example.com;
# Replace with your real certificate paths (kept generic for sharing)
ssl_certificate /etc/ssl/certs/fullchain.pem;
ssl_certificate_key /etc/ssl/private/privkey.pem;