This file contains hidden or 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
| https://bitbucket.org/rshettynj/workspace/snippets/y7MMny |
This file contains hidden or 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
| https://github.com/rshettynj/import_sg_terragrunt/ | |
| Read the README. | |
| Any questions, happy to discuss. |
This file contains hidden or 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
| Here is the code layout for terragrunt. | |
| ├── backend.tf | |
| ├── ec2 | |
| │ └── terragrunt.hcl | |
| ├── fifo | |
| │ ├── sqs_fifo | |
| │ │ └── terragrunt.hcl | |
| │ ├── sqs_fifo2 | |
| │ │ └── terragrunt.hcl | |
| │ └── terragrunt.hcl |
This file contains hidden or 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
| apiService | |
| clusterRole | |
| clusterRoleBinding | |
| configmap | |
| controllerRevision | |
| cronJob | |
| customResourceDefinition | |
| daemonSet | |
| deployment | |
| event |
This file contains hidden or 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
| def function1(mydict): | |
| print(mydict) | |
| def function2(mydict): | |
| print(mydict) | |
| from multiprocessing import Process | |
| #create and pass dictionary data to two functions.. | |
| gdict = {"one": 1, "two": 2, "ten": "last" } | |
| p1 = Process(target=function1, args=(gdict,)) |
This file contains hidden or 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
| Audience: DevOps who wants to use JSON input parameters in the Spinnaker. | |
| Why use JSON input? | |
| JSON simplifies storing large number of key/values data in one place. Spinnkaer as such supports simple string, list and map. It takes some time to get the JSON input working correctly with Spinnaker SPEL language. This document will help you with easy reference. | |
| Example JSON data: | |
| { "awsregions": { "NV": "us-east-1", "OH": "us-east-2", "FR": "eu-central-1" } } |
This file contains hidden or 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
| Requirement: Enable a workflow in AWS to "Run a precreated ECS task" when a particular "s3 bucket" is updated with an object | |
| (PutObject operation.) | |
| In simple terms, we want ECS task to run when we put an object to s3 bucket. | |
| Pre-requisites: | |
| 1. Cloudtrail configuration: |
This file contains hidden or 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
| How to create custom polices as a rule in OPA (Open Policy Agent)? | |
| Requirement: | |
| In DevOPs Practice, you may want to make sure the JSON input files are adhering certain company standards. You need to have a way to | |
| apply such custom polciies as a rule or set of rules and trigger against the JSON file. | |
| You will then fail or pass the JSON in your pipeline based on the status of the policy check. | |
| Scenarios where JSON files needs to be validated: | |
| 1. JSON linting //Basic formatting and Syntax checks. | |
| 2. Sematic checks and business logic checks. |
This file contains hidden or 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
| Some AWS resources require you to use "Marker" in order to "list" lot of resources in a service. Usuallly AWS presets the number of items | |
| to return when API call is made. It may be 50 for listing Lambda functions in your account. If you need to more (all) functions, usually | |
| AWS provides (returns) a Marker when API call is made. This Marker needs to be sent in the subsequent API requests so they recognise | |
| the request is continuation of the previous call and provide the next set of new results. | |
| example: if you have lambdas called lambda1, lambda2, lambda3 upto lamba120. | |
| In the first call, you get lambda1 to lambda50. Next call with Marker returns lambda51 to lambda100 and next call returns lambda101 to | |
| lambda120 and subsequent calls returns nothing. |
This file contains hidden or 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
| What is Codeartifact? | |
| AWS Codeartifact is newly release fully managed service for storing packages/artifacts. You can store Maven, Python and | |
| few other package types. | |
| Storing such packages and later using it in builds ensures that you are using an authenticated package that someone tested and | |
| pushed to the codeartifactory and not any random package/unapproved packages you download from Internet. | |
| packages are stored in "domain" and "repository" format. You can have multiple domains and each domain can multiple repositories | |
| in your account. |
NewerOlder