mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(aws): dump acquired knowledge
This commit is contained in:
@@ -1003,6 +1003,7 @@ If one can, prefer just build the image from an EC2 instance.
|
|||||||
[i'm trying to export a snapshot from amazon rds mysql to amazon s3, but i'm receiving an error. why is this happening?]: https://repost.aws/knowledge-center/rds-mysql-export-snapshot
|
[i'm trying to export a snapshot from amazon rds mysql to amazon s3, but i'm receiving an error. why is this happening?]: https://repost.aws/knowledge-center/rds-mysql-export-snapshot
|
||||||
[more info about resource deprecation?]: https://github.com/boto/boto3/discussions/3563
|
[more info about resource deprecation?]: https://github.com/boto/boto3/discussions/3563
|
||||||
[nat gateways]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
|
[nat gateways]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
|
||||||
|
[Pulling the Amazon Linux container image]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/amazon_linux_container_image.html
|
||||||
[rotating aws kms keys]: https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html
|
[rotating aws kms keys]: https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html
|
||||||
[savings plans user guide]: https://docs.aws.amazon.com/savingsplans/latest/userguide/
|
[savings plans user guide]: https://docs.aws.amazon.com/savingsplans/latest/userguide/
|
||||||
[Services that support the Resource Groups Tagging API]: https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/supported-services.html
|
[Services that support the Resource Groups Tagging API]: https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/supported-services.html
|
||||||
@@ -1018,7 +1019,6 @@ If one can, prefer just build the image from an EC2 instance.
|
|||||||
[what is amazon vpc?]: https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html
|
[what is amazon vpc?]: https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html
|
||||||
[what is aws config?]: https://docs.aws.amazon.com/config/latest/developerguide/WhatIsConfig.html
|
[what is aws config?]: https://docs.aws.amazon.com/config/latest/developerguide/WhatIsConfig.html
|
||||||
[what is aws global accelerator?]: https://docs.aws.amazon.com/global-accelerator/latest/dg/what-is-global-accelerator.html
|
[what is aws global accelerator?]: https://docs.aws.amazon.com/global-accelerator/latest/dg/what-is-global-accelerator.html
|
||||||
[Pulling the Amazon Linux container image]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/amazon_linux_container_image.html
|
|
||||||
|
|
||||||
<!-- Others -->
|
<!-- Others -->
|
||||||
[a guide to tagging resources in aws]: https://medium.com/@staxmarketing/a-guide-to-tagging-resources-in-aws-8f4311afeb46
|
[a guide to tagging resources in aws]: https://medium.com/@staxmarketing/a-guide-to-tagging-resources-in-aws-8f4311afeb46
|
||||||
|
|||||||
@@ -25,6 +25,14 @@ aws ecr delete-repository --repository-name 'banana/slug'
|
|||||||
aws ecr list-images --repository-name 'repository'
|
aws ecr list-images --repository-name 'repository'
|
||||||
aws ecr list-images --registry-id '123456789012' --repository-name 'my-image'
|
aws ecr list-images --registry-id '123456789012' --repository-name 'my-image'
|
||||||
|
|
||||||
|
# Check images exist in the ECR.
|
||||||
|
[[ \
|
||||||
|
$(
|
||||||
|
aws ecr list-images --repository-name 'repository' \
|
||||||
|
--query "length(imageIds[?@.imageTag=='latest'])" --output 'text' \
|
||||||
|
) -le 0 \
|
||||||
|
]] && echo "image 'repository:latest' exists" || echo "image 'repository:latest' does not exist"
|
||||||
|
|
||||||
|
|
||||||
# Use ECRs as Docker registries.
|
# Use ECRs as Docker registries.
|
||||||
aws ecr get-login-password \
|
aws ecr get-login-password \
|
||||||
@@ -67,6 +75,13 @@ aws ecr describe-repositories --repository-names 'docker-tools/image-builder' \
|
|||||||
|| aws ecr create-repository --repository-name 'docker-tools/image-builder'
|
|| aws ecr create-repository --repository-name 'docker-tools/image-builder'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Constraints:
|
||||||
|
|
||||||
|
| What | Type | Constraints | Reference |
|
||||||
|
| --------------- | ------ | -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
|
||||||
|
| Image tag | String | 1 <= length <= 300 | [ImageIdentifier](https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_ImageIdentifier.html) |
|
||||||
|
| Repository name | String | 2 <= length <= 256<br/>Must match `(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*` | [Image](https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_Image.html) |
|
||||||
|
|
||||||
## Pull through cache feature
|
## Pull through cache feature
|
||||||
|
|
||||||
> **Note:** when requesting an image for the first time using the pull through cache, the ECR creates a new repository
|
> **Note:** when requesting an image for the first time using the pull through cache, the ECR creates a new repository
|
||||||
|
|||||||
@@ -225,6 +225,7 @@ Examples: [1][lifecycle configuration examples], [2][s3 lifecycle rules example
|
|||||||
- [Using S3 Intelligent-Tiering]
|
- [Using S3 Intelligent-Tiering]
|
||||||
- [Amazon S3 cost optimization for predictable and dynamic access patterns]
|
- [Amazon S3 cost optimization for predictable and dynamic access patterns]
|
||||||
- [Gateway Endpoints vs Internet Routing for S3]
|
- [Gateway Endpoints vs Internet Routing for S3]
|
||||||
|
- [Understanding your AWS billing and usage reports for Amazon S3]
|
||||||
|
|
||||||
### Sources
|
### Sources
|
||||||
|
|
||||||
@@ -260,6 +261,7 @@ Examples: [1][lifecycle configuration examples], [2][s3 lifecycle rules example
|
|||||||
[lifecycle configure notification]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configure-notification.html
|
[lifecycle configure notification]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configure-notification.html
|
||||||
[lifecycle general considerations for transitions]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-transition-general-considerations.html
|
[lifecycle general considerations for transitions]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-transition-general-considerations.html
|
||||||
[Understanding and managing Amazon S3 storage classes]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html
|
[Understanding and managing Amazon S3 storage classes]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html
|
||||||
|
[Understanding your AWS billing and usage reports for Amazon S3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/aws-usage-report-understand.html
|
||||||
[Using S3 Intelligent-Tiering]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-intelligent-tiering.html
|
[Using S3 Intelligent-Tiering]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-intelligent-tiering.html
|
||||||
|
|
||||||
<!-- Others -->
|
<!-- Others -->
|
||||||
|
|||||||
@@ -116,6 +116,13 @@ aws ecr describe-pull-through-cache-rules --registry-id '012345678901' --ecr-rep
|
|||||||
|
|
||||||
aws ecr list-images --registry-id '012345678901' --repository-name 'cache/docker-hub'
|
aws ecr list-images --registry-id '012345678901' --repository-name 'cache/docker-hub'
|
||||||
|
|
||||||
|
# Check images exist in the ECR.
|
||||||
|
[[ $(
|
||||||
|
aws ecr list-images --repository-name 'repository' \
|
||||||
|
--query "length(imageIds[?@.imageTag=='latest'])" --output 'text' \
|
||||||
|
) -le 0 \
|
||||||
|
]] && echo "image 'repository:latest' exists" || echo "image 'repository:latest' does not exist"
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
# ECS
|
# ECS
|
||||||
|
|||||||
Reference in New Issue
Block a user