To run a local baked docker image in docker for mac kubernetes set the imagePullPolicy
to Never
.
For example:
apiVersion: v1
kind: Pod
metadata:
name: local-image-test
import boto3 | |
# create client for ec2 service and pass aws_access_key_id and aws_secret_access_key as parameter | |
client = boto3.client('ec2', region_name='us-east-1', aws_access_key_id= 'AWS_ACCESS_KEY_ID', | |
aws_secret_access_key= 'AWS_SECRET_ACCESS_KEY' ) | |
# create a dictionary with names of databases or instances as key and their volume ids as value | |
volumes_dict = { | |
'database-1' : 'volume-id-1', | |
'database-2' : 'volume-id-2', | |
'database-3' : 'volume-id-3', |
import time | |
import os | |
import select | |
import re | |
import difflib | |
from itertools import zip_longest | |
import __main__ | |
# os.chdir("enter path here") |