Skip to content

Instantly share code, notes, and snippets.

@haarchri
Created September 28, 2023 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haarchri/7b7957621f263a6b76aae408b40e88c4 to your computer and use it in GitHub Desktop.
Save haarchri/7b7957621f263a6b76aae408b40e88c4 to your computer and use it in GitHub Desktop.
apiVersion: v1
items:
- apiVersion: ec2.aws.upbound.io/v1beta1
kind: SecurityGroup
metadata:
name: my-db-b9t8p-scfnc
spec:
forProvider:
description: Allow access to PostgreSQL
name: uxp-getting-started
region: eu-central-1 # change-me
vpcId: vpc-0341abc7a4ae64ad9 # change-me
- apiVersion: ec2.aws.upbound.io/v1beta1
kind: SecurityGroupRule
metadata:
name: my-db-b9t8p-wh244
spec:
forProvider:
cidrBlocks:
- 0.0.0.0/0
fromPort: 5432
protocol: tcp
region: eu-central-1 # change-me
securityGroupIdRef:
name: my-db-b9t8p-scfnc
toPort: 5432
type: ingress
- apiVersion: rds.aws.upbound.io/v1beta1
kind: SubnetGroup
metadata:
name: my-db-b9t8p-x6nt8
spec:
forProvider:
description: An excellent formation of subnetworks.
region: eu-central-1 # change-me
subnetIds:
- subnet-0092854877c56689c # change-me
- subnet-0b540dab50edec3ba # change-me
- subnet-0e9d97066263a168e # change-me
- apiVersion: rds.aws.upbound.io/v1beta1
kind: Instance
metadata:
name: my-db-b9t8p-2q56c
spec:
forProvider:
allocatedStorage: 20
dbSubnetGroupName: my-db-b9t8p-x6nt8
engine: postgres
engineVersion: "12.15"
instanceClass: db.t2.small
passwordSecretRef:
key: password
name: getting-started-db-pass
namespace: upbound-system
publiclyAccessible: false
region: eu-central-1 # change-me
skipFinalSnapshot: true
username: masteruser
kind: List
metadata:
resourceVersion: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment