- projen version (0.24.12)
- git version (2.29.2)
$ git ci -a -m "release version 0.3.0"
[main 23b0b60] release version 0.3.0
2 files changed, 2 insertions(+), 2 deletions(-)
$ git tag v0.3.0
#!/bin/bash | |
if [ $# -gt 0 ]; then | |
INPUT="$1" | |
fi | |
ECS_CLUSTER_NAME=${INPUT-default} | |
yum remove podman-docker -y | |
echo 'net.ipv4.conf.all.route_localnet = 1' >> /etc/sysctl.conf |
import ast | |
def dict_or_str(object: any): | |
if type(object) is dict: | |
print("I am DICT") | |
return object | |
elif type(object) is str: | |
print ("I am Str") | |
resp = False |
import { App, CfnParameter, Stack, StackProps } from 'aws-cdk-lib'; | |
import * as iam from 'aws-cdk-lib/aws-iam'; | |
import { Construct } from 'constructs'; | |
export class MyStack extends Stack { | |
constructor(scope: Construct, id: string, props: StackProps = {}) { | |
super(scope, id, props); | |
const accountPrincipal = new CfnParameter(this, 'accountid', { | |
default: '', | |
description: 'trainerAccountId', |
aws dms describe-replication-tasks --query 'ReplicationTasks'[*]['ReplicationTaskIdentifier'] --output text --region [region]
--- example output ---
prod-sync-task
uat-sync-task
dev-sync-task
import * as lambda from '@aws-cdk/aws-lambda'; | |
import * as s3 from '@aws-cdk/aws-s3'; | |
import { App, Construct, Stack, StackProps, CfnOutput, RemovalPolicy } from '@aws-cdk/core'; | |
// get date function. | |
function getdate() { | |
var date = new Date(); | |
var mm = date.getMonth() + 1; // getMonth() is zero-based | |
var dd = date.getDate(); | |
return [date.getFullYear(), | |
(mm>9 ? '' : '0') + mm, |
{
"Records": [
{
"body": "{\"url\": \"https://apps.apple.com/tw/app/facebook/id284882215\",\"line\": {\"reply\": {\"replyToken\": \"mockvalue\"}}}"
}
]
}
source: https://techviewleo.com/how-to-install-mysql-8-on-amazon-linux-2/
wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
sudo yum localinstall mysql57-community-release-el7-11.noarch.rpm -y
sudo yum install mysql-community-server -y
kind.yaml
apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
extraPortMappings:
- containerPort: 30002
hostPort: 30002
- role: worker