This file contains 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
<html> | |
<head> | |
<script src="https://www.google.com/recaptcha/api.js"></script> | |
<script src="https://code.jquery.com/jquery-3.5.1.min.js" | |
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" | |
crossorigin="anonymous"> | |
</script> | |
<script> | |
function onSubmit(token) { | |
$("#ContactForm").prop("action", "https://api.mydomain.com/cform"); |
This file contains 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
import Sns from "aws-sdk/clients/sns"; | |
import axios from 'axios'; | |
import * as querystring from 'querystring'; | |
const reCapUrl = "https://www.google.com/recaptcha/api/siteverify"; | |
// we got this from personal reCaptcha Google Page | |
const reCaptchaSecret = "xxxxxxxxxxxxxxxxxxxxxxxx" ; | |
function bodyToMap(parts: any) : Map<String, String>{ |
This file contains 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
import * as cdk from '@aws-cdk/core'; | |
import * as lambda from '@aws-cdk/aws-lambda'; | |
import * as lambdanode from '@aws-cdk/aws-lambda-nodejs'; | |
import * as logs from '@aws-cdk/aws-logs'; | |
import * as iam from '@aws-cdk/aws-iam'; | |
import {EndpointType, LambdaRestApi, DomainName, SecurityPolicy} from "@aws-cdk/aws-apigateway"; | |
import {Certificate} from "@aws-cdk/aws-certificatemanager"; | |
import * as route53 from '@aws-cdk/aws-route53'; | |
import * as sns from '@aws-cdk/aws-sns'; | |
import * as targets from '@aws-cdk/aws-route53-targets'; |
This file contains 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
import {Construct, RemovalPolicy, Stack} from "@aws-cdk/core"; | |
import * as ecs from '@aws-cdk/aws-ecs'; | |
import {LogDriver} from '@aws-cdk/aws-ecs'; | |
import {Peer, Port, SecurityGroup, SubnetType} from '@aws-cdk/aws-ec2'; | |
import {ExtendedStackProps} from "../model/ExtendedStackProps"; | |
import * as logs from "@aws-cdk/aws-logs"; | |
/** | |
* This stack contains an ECS cluster/service with ClamAv inside |
This file contains 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
import { Construct, Stack } from '@aws-cdk/core'; | |
import { ExtendedStackProps } from '../model/ExtendedStackProps'; | |
import * as lambda from '@aws-cdk/aws-lambda'; | |
import * as iam from '@aws-cdk/aws-iam'; | |
import * as path from 'path'; | |
import * as eventTargets from '@aws-cdk/aws-events-targets'; | |
import { Route53Stack } from './route53Stack'; | |
import { Rule, Schedule, RuleTargetInput } from '@aws-cdk/aws-events'; | |
import * as logs from '@aws-cdk/aws-logs'; |
This file contains 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 AWS = require('aws-sdk'); | |
var route53 = new AWS.Route53(); | |
exports.handler = async (event) => { | |
console.log("Invoking CName change Script"); | |
var ec2 = new AWS.EC2(); | |
let vpnUrl; | |
var data = await ec2.describeClientVpnEndpoints({}).promise(); |
This file contains 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 AWS = require('aws-sdk'); | |
exports.handler = async (event) => { | |
var cloudformation = new AWS.CloudFormation(); | |
console.log(`Invoking StartStop Script with Parameter: ${event}`); | |
if (event == "startup") { | |
// ============== |
This file contains 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
import { Construct, Stack, Tag, ConcreteDependable} from '@aws-cdk/core'; | |
import { CfnClientVpnTargetNetworkAssociation, CfnClientVpnEndpoint, CfnClientVpnAuthorizationRule, CfnClientVpnRoute, Vpc } from '@aws-cdk/aws-ec2' | |
import { ISecret } from '@aws-cdk/aws-secretsmanager'; | |
import { ExtendedStackProps } from '../model/ExtendedStackProps'; | |
import * as certManager from '@aws-cdk/aws-certificatemanager'; | |
import * as logs from '@aws-cdk/aws-logs'; | |
export class VpnStack extends Stack { | |
readonly secret: ISecret; |
This file contains 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
#!/usr/bin/env node | |
import 'source-map-support/register'; | |
import * as cdk from '@aws-cdk/core'; | |
import { ContDeployDockerStack } from '../lib/cont_deploy_docker-stack'; | |
const app = new cdk.App(); | |
new ContDeployDockerStack(app, 'ContDeployDockerStack'); |
This file contains 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
import { Stack, StackProps, Construct, SecretValue } from '@aws-cdk/core'; | |
import { Vpc } from '@aws-cdk/aws-ec2'; | |
import * as ecr from '@aws-cdk/aws-ecr'; | |
import * as ecs from '@aws-cdk/aws-ecs'; | |
import * as ecspatterns from '@aws-cdk/aws-ecs-patterns'; | |
import * as codebuild from '@aws-cdk/aws-codebuild'; | |
import { ManagedPolicy } from '@aws-cdk/aws-iam'; | |
import { Artifact, Pipeline } from '@aws-cdk/aws-codepipeline'; | |
import { GitHubSourceAction, CodeBuildAction, EcsDeployAction} from '@aws-cdk/aws-codepipeline-actions'; | |
import { PipelineProject, LocalCacheMode } from '@aws-cdk/aws-codebuild'; |
NewerOlder