Agenda - 2nd April, Saturday
Quiz tool - Kahoot 2 Tracks in this conference
Organizers list - Khaja - Aarthi
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| func main() { | |
| // Create a WaitGroup | |
| var wg sync.WaitGroup |
| --- | |
| description: 'Push Sample File to Multiple EC2 Instances Across AWS Accounts' | |
| schemaVersion: '2.2' | |
| description: 'This automation document pushes a sample file to EC2 instances across different AWS accounts.' | |
| assumeRole: 'arn:aws:iam::ACCOUNT_ID:role/CrossAccountRole' | |
| parameters: | |
| instanceIds: | |
| type: 'StringList' | |
| description: 'List of EC2 instance IDs to which the file will be pushed.' | |
| accounts: |
| apiVersion: v1 | |
| kind: PersistentVolumeClaim | |
| metadata: | |
| name: pvc1 | |
| spec: | |
| accessModes: | |
| - ReadWriteOnce | |
| resources: | |
| requests: | |
| storage: 1Gi |
| image: python:3.7.3 | |
| pipelines: | |
| default: | |
| - step: | |
| name: Build and Test | |
| script: | |
| - pipe: atlassian/aws-cli:1.16.283 | |
| variables: | |
| AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID |
| # Have the provider and terraform block of code in a file called provider.tf | |
| provider "aws" { | |
| region = "ap-southeast-2" | |
| } | |
| terraform { | |
| required_providers { | |
| aws = { | |
| source = "hashicorp/aws" | |
| version = "~> 4.16" |
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "Stmt1665504301448", | |
| "Action": [ | |
| "kms:CancelKeyDeletion", | |
| "kms:ConnectCustomKeyStore", | |
| "kms:CreateAlias", | |
| "kms:CreateCustomKeyStore", |
| --- | |
| # Labels with prefix | |
| apiVerion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app.kubernetes.io/name: redpod | |
| app.kubernetes.io/version: 1.24 | |
| # Labels without prefix |
| --- | |
| # ConfigMap with different ways of data usage | |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: game-demo | |
| data: | |
| # property-like keys; each key maps to a simple value | |
| player_initial_lives: "3" | |
| ui_properties_file_name: "user-interface.properties" |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| labels: | |
| test: liveness | |
| name: liveness-exec | |
| spec: | |
| containers: | |
| - name: liveness | |
| image: k8s.gcr.io/busybox |
Agenda - 2nd April, Saturday
Quiz tool - Kahoot 2 Tracks in this conference
Organizers list - Khaja - Aarthi