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 cdk = require('@aws-cdk/core'); | |
export class AwsCdkStack extends cdk.Stack { | |
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
super(scope, id, props); | |
// The code that defines your stack goes here | |
} | |
} |
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 cdk = require('@aws-cdk/core'); | |
import s3 = require('@aws-cdk/aws-s3'); | |
export class AwsCdkStack extends cdk.Stack { | |
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
super(scope, id, props); | |
const s3Bucket = new s3.Bucket(this, 'host-bucket', { | |
bucketName: `react-host-bucket-${Date.now()}`, | |
websiteIndexDocument: 'index.html', |
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 cdk = require('@aws-cdk/core'); | |
import s3 = require('@aws-cdk/aws-s3'); | |
import cloudfront = require('@aws-cdk/aws-cloudfront'); | |
export class AwsCdkStack extends cdk.Stack { | |
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
super(scope, id, props); | |
const s3Bucket = new s3.Bucket(this, 'host-bucket', { | |
bucketName: `react-host-bucket-9f7317d0dd7c`, |
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
{ | |
"schemaVersion": "0.3", | |
"description": "Updates a Microsoft Windows AMI. By default it will install all Windows updates, Amazon software, and Amazon drivers. It will then sysprep and create a new AMI. Supports Windows Server 2008 R2 and greater.", | |
"assumeRole": "{{ AutomationAssumeRole }}", | |
"parameters": { | |
"SourceAmiId": { | |
"type": "String", | |
"description": "(Required) The source Amazon Machine Image ID." | |
}, | |
"TopicArn": { |
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
{ | |
"schemaVersion": "0.3", | |
"description": "Updates a Microsoft Windows AMI. By default it will install all Windows updates, Amazon software, and Amazon drivers. It will then sysprep and create a new AMI. Supports Windows Server 2008 R2 and greater.", | |
"assumeRole": "{{ AutomationAssumeRole }}", | |
"parameters": { | |
"SourceAmiId": { | |
"type": "String", | |
"description": "(Required) The source Amazon Machine Image ID." | |
}, | |
"IamInstanceProfileName": { |
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
{ | |
"schemaVersion": "0.3", | |
"description": "Updates a Microsoft Windows AMI. By default it will install all Windows updates, Amazon software, and Amazon drivers. It will then sysprep and create a new AMI. Supports Windows Server 2008 R2 and greater.", | |
"assumeRole": "{{ AutomationAssumeRole }}", | |
"parameters": { | |
"InstanceId": { | |
"type": "String", | |
"description": "(Required) EC2 Instance ID." | |
}, | |
"AutomationAssumeRole": { |
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
pipeline { | |
agent any | |
environment { | |
REPO_URL = 'https://DittoJenkins@bitbucket.org/empiricom/your-repo-name.git' | |
} | |
stages { | |
stage('Build') { | |
steps { | |
echo 'Pull code and build' | |
git credentialsId: 'bitbucket', url: "${REPO_URL}" |
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 awsSdk from 'aws-sdk'; | |
async function getParameterFromSystemManager( environment: string ) { | |
const ssm = new awsSdk.SSM(); | |
const appId = environment.split('.')[0]; | |
const stage = environment.split('.')[1].toUpperCase(); | |
const params = { | |
Names: [`/${appId}/${stage}/cognito_user_pool_id`, `/${appId}/${stage}/queue_url`, `/${appId}/${stage}/table_name`]/* required */ |
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
FROM openjdk:8u201-jdk-alpine3.9 | |
LABEL mantainer="" | |
STOPSIGNAL SIGKILL | |
ENV MIRROR https://www-eu.apache.org/dist/jmeter/binaries | |
ENV JMETER_VERSION 5.2 | |
ENV JMETER_HOME /opt/apache-jmeter-${JMETER_VERSION} | |
ENV JMETER_BIN ${JMETER_HOME}/bin | |
ENV ALPN_VERSION 8.1.13.v20181017 | |
ENV PATH ${JMETER_BIN}:$PATH |
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
# Use vinsdocker base image | |
FROM yourrepo/jmeter:base | |
LABEL mantainer="" | |
# Ports to be exposed from the container for JMeter Master | |
EXPOSE 60000 | |
OlderNewer