内容简介:A utility service for Amazon Resource Names (ARN Services has two features: you canbreak up an ARN into its componentsand you cangenerate an ARN from its components. There are at the moment no semantic checks done, however for theIn order to break up an AR
arn.services
A utility service for Amazon Resource Names ( ARNs
), providing the functionality
as listed below. You can consume it as an online service via https://arn.services
or run it yourself as a SAM application
, see details below in thesection.
Use it
ARN Services has two features: you canbreak up an ARN into its componentsand you cangenerate an ARN from its components. There are at the moment no
semantic checks done, however for the generate/
endpoint some defaulting is provided.
Compartmentalize
In order to break up an ARN into its components (or: compartmentalize), use an
HTTP GET
on explode/$ARN
, for example:
$ curl -s https://arn.services/explode/arn:aws:s3:us-west-2::abucket | jq . { "Partition": "aws", "Service": "s3", "Region": "us-west-2", "AccountID": "", "Resource": "abucket" }
Generate
To generate a fully qualified ARN from (certain) components, use an HTTP POST
to generate/
, for example:
$ curl -s -X POST \ -H "Content-Type: application/json" \ -d '{"Service":"s3", "Resource":"somebucket/someobject"}' \ https://arn.services/generate arn:aws:s3:us-west-2::somebucket/someobject
Run it yourself
If you want to run ARN services yourself, you need to:
-
clone this repo (using
git clone https://github.com/mhausenblas/arn.services.git
for example) -
create an S3 bucket for the Lambda functions and change the value of
ARNS_BUCKET
to your own S3 bucket in the Makefile -
execute
make deploy
-
OPTIONALLY: set up API Gateway
and Route 53 for a custom domain and run
make up ARNS_ACM_CERT=$ARNS_ACM_CERT
with the ARN of the ACM cert (I did email validate for my Namecheap domain).
以上所述就是小编给大家介绍的《AWS ARN services》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
像计算机科学家一样思考Python (第2版)
[美] 艾伦 B. 唐尼 / 赵普明 / 人民邮电出版社 / 2016-7 / 49.00
本书以培养读者以计算机科学家一样的思维方式来理解Python语言编程。贯穿全书的主体是如何思考、设计、开发的方法,而具体的编程语言,只是提供了一个具体场景方便介绍的媒介。 全书共21章,详细介绍Python语言编程的方方面面。本书从基本的编程概念开始讲起,包括语言的语法和语义,而且每个编程概念都有清晰的定义,引领读者循序渐进地学习变量、表达式、语句、函数和数据结构。书中还探讨了如何处理文件和......一起来看看 《像计算机科学家一样思考Python (第2版)》 这本书的介绍吧!