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
| 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
| 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}` | |
| } |
OlderNewer