铁人赛
AWS
S3
Outposts
S3 Bucket
当你已拥有一个隶属於 AWS Outposts 组织下的帐号,并且被共享了相关资源後⋯⋯
建 Bucket
, 建 Access Point
, 建 Endpoint
, 开心使用
s3control
指令文件连结
以 Outpost Owner 身份,建立 S3 on Outposts bucket
aws s3control create-bucket \
--bucket nipapa-dev-s3-bucket \
--outpost-id op-xxxxxxxxxxxx \
--profile xxx
Outpost Owner
在 Outpost 上建立 Bucket;
*目前尚不支援透过 RAM 分享这个建立权限给 Linked Account
以 Outpost Owner 身份,建立 Access Point for an S3 on Outposts bucket 输入指令
arn:aws:s3:<region>:<account-id>:<access-point-name>
VPC
和 AWS
(也就是 S3 Bucket on Outpost)aws s3control create-access-point \
--account-id 111111111111<outpost owner> \
--name nipapa-dev-s3-bucket \
--bucket "arn:aws:s3-outposts:ap-northeast-1:111111111111:outpost/op-xxxxxxxxxxxx/bucket/nipapa-dev-s3-bucket" \
--vpc-configuration VpcId=vpc-1234567890abcedf0 \
--profile xxx
{
"AccessPointArn": "arn:aws:s3-outposts:ap-northeast-1:111111111111:outpost/op-xxxxxxxxxxxx/accesspoint/nipapa-dev-s3-bucket"
}
(END)
{
"AccessPointArn": "arn:aws:s3-outposts:ap-northeast-1:111111111111:outpost/op-xxxxxxxxxxxx/accesspoint/boss-seop-accesspoint"
}
(END)
aws s3control list-access-points \
--account-id 111111111111 \
--bucket "arn:aws:s3-outposts:ap-northeast-1:111111111111:outpost/op-xxxxxxxxxxxx/bucket/nipapa-dev-s3-bucket" \
--profile xxx
aws s3control delete-access-point \
--account-id 111111111111 \
--name "arn:aws:s3-outposts:ap-northeast-1:111111111111:outpost/op-xxxxxxxxxxxx/accesspoint/boss-seop-accesspoint" \
--profile xxx
aws s3control create-access-point \
--account-id 111111111111 \
--name boss-s3op-accesspoint \
--bucket "arn:aws:s3-outposts:ap-northeast-1:111111111111:outpost/op-xxxxxxxxxxxx/bucket/nipapa-dev-s3-bucket" \
--vpc-configuration VpcId=vpc-1234567890abcedf0 \
--profile xxx
{
"AccessPointArn": "arn:aws:s3-outposts:ap-northeast-1:111111111111:outpost/op-xxxxxxxxxxxx/accesspoint/boss-s3op-accesspoint"
}
(END)
建立 Endpoint on an Outpost
Endpoint
啊!aws s3outposts create-endpoint \
--outpost-id op-xxxxxxxxxxxx \
--subnet-id subnet-0341959a4ebef5b98 \
--security-group-id sg-02a2747f6477e0783 \
--profile xxx
aws s3outposts create-endpoint --outpost-id op-xxxxxxxxxxxx --subnet-id subnet-0341959a4ebef5b98 --security-group-id sg-02a2747f6477e0783
操作 S3 Objects
s3api
操作,以下列出资料作为范例 aws s3api list-objects-v2 --bucket "arn:aws:s3-outposts:ap-northeast-1:111111111111:outpost/op-xxxxxxxxxxxx/accesspoint/nipapa-dev-s3-bucket" --profile xxx
<<: 21 | WordPress 短代码区块 Shortcode Block
>>: D21/ 怎麽结合 ViewModel 和 Compose? - ViewModel
前言 HIYO!又是阿峻我啦~ 不知从何时开始,Deep Learning 跟 AI 这两个名词好像...
当我们拿到一个现有的 Web Component 时 , 如果直接在 Vue 专案中使用会抱错 今天...
来到了倒数第二天 真是快被榨乾了呢(还真是没料 (┐「﹃゚。)) 但说好写三十篇技术文就是要灌满三十...
Tippy.js Tippy.js 是一款轻量的 JavaScript 动态提示工具库,提供完整的...
调用function时,常会在function内的一堆动作中看到this关键字,而this就是记录呼...