Skip to content

Commit

Permalink
Merge pull request #17 from lysz210/LYS-24-verifica-dominio-photos.gh…
Browse files Browse the repository at this point in the history
….lysz210.name-per-gh-pages

LYS-24-verifica-dominio-photos.gh.lysz210.name-per-gh-pages
  • Loading branch information
lysz210 authored Jan 21, 2025
2 parents c83bb76 + bd026f3 commit 01e27d1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pulumi/Pulumi.dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config:
aws:region: eu-south-1
photos:ghVerificationHostname:
secure: AAABAK4RBLkQScF98pRH/igUwsn9CEq+WEt6XgXEksJQ1GRx3k4pUwNn51Vk5evY4BY9hoW3kgd5rQjdi6rw1GrVMYbgFmVuS68s7T3BZC8Dbh4m0b0=
photos:ghVerificationValue:
secure: AAABAPrBerjeJAZroYO5rbn8YUTNsOy67pKggiYN2cxb3on9gCBg3ba19/ywaZAa/bz2T1TI4/rh02gPVnc=
31 changes: 30 additions & 1 deletion pulumi/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,37 @@
import { BucketV2 } from "@pulumi/aws/s3";

import {getZone, Record, RecordType} from "@pulumi/aws/route53";
import { Config } from "@pulumi/pulumi";
const config = new Config('photos')
// create photo repositories
// flickr
const flickrRepo = new BucketV2("my-flickr-repo");

const lysz210Zone = getZone({
name: "lysz210.name"
})

const ghPagesVerificationRecord = new Record("ghPagesVerificationRecord", {
zoneId: lysz210Zone.then(zone => zone.zoneId),
type: RecordType.TXT,
name: config.requireSecret<string>("ghVerificationHostname"),
records: [config.requireSecret<string>("ghVerificationValue")],
ttl: 300
});

const ghPagesPointerRecord = new Record("ghPagesPointerRecord", {
zoneId: lysz210Zone.then(zone => zone.zoneId),
type: RecordType.A,
name: 'photos.gh.lysz210.name',
records: [
'185.199.108.153',
'185.199.109.153',
'185.199.110.153',
'185.199.111.153',
],
ttl: 300
})

// Export the name of the bucket
export const flickrRepoId = flickrRepo.id;
export const ghPagesVerification = ghPagesVerificationRecord.name
export const ghPagesPointer = ghPagesPointerRecord.name

0 comments on commit 01e27d1

Please sign in to comment.