This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function getQueueUrl(accountId: string, queueArn: string) { | |
| const regex = new RegExp(`${accountId}:`); | |
| const queueName = queueArn.split(regex)[1]; | |
| return `https://sqs.${process.env.AWS_REGION}.amazonaws.com/${accountId}/${queueName}` | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var pulumi = require("@pulumi/pulumi"); | |
| var aws = require("@pulumi/aws"); | |
| var awsx = require("@pulumi/awsx"); | |
| var stackName = | |
| pulumi.getStack().charAt(0).toUpperCase() + pulumi.getStack().slice(1); | |
| var ecrRepo = new aws.ecr.Repository("haproxy", { | |
| mageScanningConfiguration: { | |
| scanOnPush: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM haproxy:2.3 | |
| COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:12.16.3-alpine | |
| COPY package.json package-lock*.json ./ | |
| RUN npm install | |
| COPY . . | |
| RUN npm run build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Merged | |
| on: | |
| pull_request: | |
| types: [closed] | |
| jobs: | |
| destroy: | |
| name: Destroy Pulumi Stack and Resources | |
| if: github.event.pull_request.merged == true | |
| runs-on: ubuntu-latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pulumi Preview | |
| on: | |
| pull_request: | |
| branches: [master, release, staging, development] | |
| jobs: | |
| preview: | |
| name: Preview | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var path = require("path"); | |
| var { LocalWorkspace } = require("@pulumi/pulumi/x/automation"); | |
| // get node command arguments, if the user | |
| // passed `destroy`. | |
| var args = process.argv.slice(2); | |
| var destroy = false; | |
| if (args.length > 0 && args[0]) { | |
| destroy = args[0] === "destroy"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: mit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: mit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace VDBCore | |
| { | |
| public class Baggage | |
| { |
NewerOlder