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
For example, Account A needs to push docker images to Account B: | |
High level steps: | |
* Trust relationship will tell from where the request is originating | |
* Policy will tell what access the role has | |
* Account B's role will have trust relationship to Account A | |
* Account B's role will have access to push the image to ECR | |
* Account A's role will have trust relationship to EC2(as request is originating from EC2(jenkins)) |
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
Account A needs to pull images on Account B: | |
On Account A: | |
* Create a role in Account A | |
* Add policy which as ECR read access | |
On Account B: | |
* Create ECR Repository | |
* Add policy to the ECR Repository as below under permissions and replace <AccountA_ID> | |
{ |
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
cat <<EOF >taskdef.json | |
{ | |
"family": "v1-taskDefintion", | |
"containerDefinitions": [ | |
{ | |
"name": "${microservice_name}", | |
"image": "${docker_repo_uri}/${microservice_name}:${tag}”, | |
"portMappings": [ | |
{ | |
"containerPort": ${containerPort}, |
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
#!/usr/local/bin/bash | |
echo Enter Cluster Name: | |
read -e cluster_name | |
echo Enter Container Name: | |
read -e container_name | |
echo Enter Service Name: | |
read -e service_name |
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
services: | |
flowise: | |
image: flowiseai/flowise | |
restart: always | |
environment: | |
- PORT=3001 | |
- FLOWISE_USERNAME=${FLOWISE_USERNAME} | |
- FLOWISE_PASSWORD=${FLOWISE_PASSWORD} | |
ports: | |
- "3001:3001" |
OlderNewer