Skip to content

Instantly share code, notes, and snippets.

View radhakrishna4687's full-sized avatar

krishna radhakrishna4687

View GitHub Profile
def getProjectName() {
return 'JenkinsPipeline'
}
def getJDKVersion() {
return 'jdk1.8.0_101'
}
def getMavenConfig() {
return 'maven-config'
@radhakrishna4687
radhakrishna4687 / Jenkinsfile
Created March 4, 2021 06:47 — forked from jonico/Jenkinsfile
Example for a full blown Jenkins pipeline script with multiple stages, kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage c…
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
spec:
containers:
- name: mvn
image: maven:3.3.9-jdk-8-alpine

S3 has what consistency model for PUTS of new objects

  • Read After Write Consistency

What is AWS Storage Gateway?

  • It's an on-premise virtual appliance that can be used to cache S3 locally at a customers site.

One of your users is trying to upload a 7.5GB file to S3 however they keep getting the following error message - "Your proposed upload exceeds the maximum allowed object size.". What is a possible solution for this?

  • Design your application to use the multi-part upload API for all

What is an AWS region?

  • A region is a geographical area that consists of diffrent availabilty zones. Each region consts of 2(or more) Availability Zones.

What dose an AWS Region consist of?

  • An independent collection of AWS computing resources in a defined geography.

Which statement best describes Availability Zones?

  • Distinct locations from within an AWS region that are engineered to be
@radhakrishna4687
radhakrishna4687 / Simple-S3Bucket-SNS
Created February 11, 2021 04:27 — forked from austoonz/PowerShellAssociation.yml
A CloudFormation template sample for creating an S3 Bucket with an SNS Trigger.
---
AWSTemplateFormatVersion: '2010-09-09'
Description: Simple S3 Bucket with SNS Trigger
Parameters:
BucketName:
Type: String
Description: The name of the S3 Bucket to create
@radhakrishna4687
radhakrishna4687 / cf_create_or_update.py
Created January 27, 2021 06:31 — forked from svrist/cf_create_or_update.py
Update or create a CloudFormation stack given a name and template + params'
'Update or create a stack given a name and template + params'
from __future__ import division, print_function, unicode_literals
from datetime import datetime
import logging
import json
import sys
import boto3
import botocore
@radhakrishna4687
radhakrishna4687 / cf_create_or_update.py
Created January 27, 2021 06:31 — forked from svrist/cf_create_or_update.py
Update or create a CloudFormation stack given a name and template + params'
'Update or create a stack given a name and template + params'
from __future__ import division, print_function, unicode_literals
from datetime import datetime
import logging
import json
import sys
import boto3
import botocore
@radhakrishna4687
radhakrishna4687 / stack.yaml
Created January 26, 2021 16:30 — forked from djoreilly/stack.yaml
Cloudformation example
AWSTemplateFormatVersion: 2010-09-09
# aws cloudformation create-stack --stack-name test-stack --template-body file://stack.yaml
# aws cloudformation describe-stacks --stack-name test-stack
# aws cloudformation describe-stack-events --stack-name test-stack
# aws cloudformation update-stack --stack-name test-stack --template-body file://stack.yaml
Description: VPC, SGs, instances
Parameters:
@radhakrishna4687
radhakrishna4687 / Jenkinsfile
Created November 8, 2020 02:16 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@radhakrishna4687
radhakrishna4687 / AWS-Certifications.md
Created September 10, 2020 15:30 — forked from devops-school/AWS-Certifications.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.