Social Buttons

LightBlog

Breaking

LightBlog

mercredi 20 mai 2020

AWS CONFIG CLOUDFORMATION aws-senior.com

aws-senior.com

aws-senior.com

www.aws-senior.com
Visite out website www.aws-senior.com
http://www.aws-senior.com
www.aws-senior.com
AWS Certified Cloud Practitioner
AWS Certified Solutions Architect Associate
AWS Certified Developer Associate
AWS Certified SysOps Administrator Associate
AWS Certified Solutions Architect Professional
AWS Certified DevOps Engineer Professional
AWS Certified Big Data Specialty
AWS Certified Advanced Networking Specialty
AWS Certified Security Specialty www.aws-senior.com
/ http://www.aws-senior.com
aws-senior.com
www.aws-senior.com
Visite out website www.aws-senior.com
www.aws-senior.com

aws-senior.com

www.aws-senior.com
Visite out website www.aws-senior.com
http://www.aws-senior.com
www.aws-senior.com
AWS Certified Cloud Practitioner
AWS Certified Solutions Architect Associate
AWS Certified Developer Associate
AWS Certified SysOps Administrator Associate
AWS Certified Solutions Architect Professional
AWS Certified DevOps Engineer Professional
AWS Certified Big Data Specialty
AWS Certified Advanced Networking Specialty
AWS Certified Security Specialty www.aws-senior.com
/ http://www.aws-senior.com
aws-senior.com
www.aws-senior.com
Visite out website www.aws-senior.com
www.aws-senior.com [121]Amazon EventBridge is a serverless event bus that makes it easy to connect applications together. It can use data from AWS services, your own applications, and [122]integrations with Software-as-a-Service (SaaS) partners. Last year at re:Invent, we [123]introduced in preview EventBridge schema registry and discovery, a way to store the structure of the events (the schema) in a central location, and simplify using events in your code by generating the code to process them for Java, Python, and Typescript.
Today, I am happy to announce that the EventBridge schema registry is generally available, and that we added support for resource policies. Resource policies allow to share a schema repository across different AWS accounts and [124]organizations. In this way, developers on different teams can search for and use any schema that another team has added to the shared registry.
Using EventBridge Schema Registry Resource Policies It̢۪s common for companies to have different development teams working on different services. To make a more concrete example, let̢۪s take two teams working on services that have to communicate with each other: * The CreateAccount development team, working on a frontend API that receives requests from a web/mobile client to create a new customer account for the company. * the FraudCheck development team, working on a backend service checking the data for newly created accounts to estimate the risk that those are fake.
Each team is using their own AWS account to develop their application. Using EventBridge, we can implement the following architecture: * The frontend CreateAccount applications is using the [125]Amazon API Gateway to process the request using a [126]AWS Lambda function written in Python. When a new account is created, the Lambda function publishes the ACCOUNT_CREATED event on a [127]custom event bus. * The backend FraudCheck Lambda function is built in Java, and is expecting to receive the ACCOUNT_CREATED event to call [128]Amazon Fraud Detector (a fully managed service we [129]introduced in preview at re:Invent) to estimate the risk of that being a fake account. If the risk is above a certain threshold, the Lambda function takes preemptive actions. For example, it can flag the account as fake on a database, or post a FAKE_ACCOUNT event on the event bus.
How can the two teams coordinate their work so that they both know the syntax of the events, and use EventBridge to generate the code to process those events?
First, a custom event bus is created with permissions to access within the company organization.
Then, the CreateAccount team uses EventBridge schema discovery to automatically populate the schema for the ACCOUNT_CREATED event that their service is publishing. This event contains all the information of the account that has just been created.
In an event-driven architecture, services can subscribe to specific types of events that they̢۪re interested in. To receive ACCOUNT_CREATED events, a rule is created on the event bus to send those events to the FraudCheck function.
Using resource policies, the CreateAccount team gives read-only access to the FraudCheck team AWS account to the discovered schemas. The Principal in this policy is the AWS account getting the permissions. The Resource is the schema registry that is being shared. { "Version": "2012-10-17", "Statement": [ { "Sid": "GiveSchemaAccess", "Effect": "Allow", "Action": [ "schemas:ListSchemas", "schemas:SearchSchemas", "schemas:DescribeSchema", "schemas:DescribeCodeBinding", "schemas:GetCodeBindingSource", "schemas:PutCodeBinding" ], "Principal": { "AWS": "123412341234" }, "Resource": [ "arn:aws:schemas:us-east-1:432143214321:schema/discovered-schemas", "arn:aws:schemas:us-east-1:432143214321:schema/discovered-schemas*" ] } ] }
Now, the FraudCheck team can search the content of the discovered schema for the ACCOUNT_CREATED event. Resource policies allow you to make a registry available across accounts and organizations, but they will not automatically show up in the console. To access the shared registry, the FraudCheck team needs to use the [130]AWS Command Line Interface (CLI) and specify the full [131]ARN of the registry: aws schemas search-schemas \ --registry-name arn:aws:schemas:us-east-1:432143214321:registry/discovered-s chemas \ --keywords ACCOUNT_CREATED
In this way, the FraudCheck team gets the exact name of the schema created by the CreateAccount team. { "Schemas": [ { "RegistryName": "discovered-schemas", "SchemaArn": "arn:aws:schemas:us-east-1:432143214321:schema/discover ed-schemas/CreateAccount@ACCOUNT_CREATED", "SchemaName": “CreateAccount@ACCOUNT_CREATED", "SchemaVersions": [ { "CreatedDate": "2020-04-28T11:10:15+00:00", "SchemaVersion": 1 } ] } ] }
With the schema name, the FraudCheck team can describe the content of the schema: aws schemas describe-schema \ --registry-name arn:aws:schemas:us-east-1:432143214321:registry/discovered-s chemas \ --schema-name CreateAccount@ACCOUNT_CREATED
The result describes the schema using the [132]OpenAPI specification: { "Content": "{\"openapi\":\"3.0.0\",\"info\":{\"version\":\"1.0.0\",\"title\" :\"CREATE_ACCOUNT\"},\"paths\":{},\"components\":{\"schemas\":{\"AWSEvent\":{\"t ype\":\"object\",\"required\":[\"detail-type\",\"resources\",\"detail\",\"id\",\ "source\",\"time\",\"region\",\"version\",\"account\"],\"x-amazon-events-detail- type\":\"CREATE_ACCOUNT\",\"x-amazon-events-source\":\”CreateAccount\",\"propert ies\":{\"detail\":{\"$ref\":\"#/components/schemas/CREATE_ACCOUNT\"},\"account\" :{\"type\":\"string\"},\"detail-type\":{\"type\":\"string\"},\"id\":{\"type\":\" string\"},\"region\":{\"type\":\"string\"},\"resources\":{\"type\":\"array\",\"i tems\":{\"type\":\"object\"}},\"source\":{\"type\":\"string\"},\"time\":{\"type\ ":\"string\",\"format\":\"date-time\"},\"version\":{\"type\":\"string\"}}},\"CRE ATE_ACCOUNT\":{\"type\":\"object\",\"required\":[\"firstName\",\"surname\",\"id\ ",\"email\"],\"properties\":{\"email\":{\"type\":\"string\"},\"firstName\":{\"ty pe\":\"string\"},\"id\":{\"type\":\"string\"},\"surname\":{\"type\":\"string\"}} }}}}", "LastModified": "2020-04-28T11:10:15+00:00", "SchemaArn": "arn:aws:schemas:us-east-1:432143214321:schema/discovered-schem as/CreateAccount@CREATE_ACCOUNT", "SchemaName": “CreateAccount@ACCOUNT_CREATED", "SchemaVersion": "1", "Tags": {}, "Type": "OpenApi3", "VersionCreatedDate": "2020-04-28T11:10:15+00:00" }
Using the [133]AWS Command Line Interface (CLI), the FraudCheck team can create a code binding if it isn̢۪t already created, using the put-code-binding command, and then download the code binding to process that event: aws schemas get-code-binding-source \ --registry-name arn:aws:schemas:us-east-1:432143214321:registry/discovered-s chemas \ --schema-name CreateAccount@ACCOUNT_CREATED \ --language Java8 CreateAccount.zip
Another option for the FraudCheck team is to copy and paste (after unescaping the JSON string) the Content of the discovered schema to create a new custom schema in their AWS account.
Once the schema is copied to their own account, the FraudCheck team can use the [134]AWS Toolkit IDE plugins to view the schema, download code bindings, and generate serverless applications directly from their IDEs. The EventBridge team is working to add the capability to the AWS Toolkit to use a schema registry in a different account, making this step simpler. Stay tuned!
Often customers have a specific team, with a different AWS account, managing the event bus. For the sake of simplicity, in this post I assumed that the CreateAccount team was the one configuring the EventBridge event bus. With more accounts, you can simplify permissions [135]using IAM to share resources with groups of AWS accounts in AWS Organizations.
Available Now The EventBridge Schema Registry is available now in all commercial regions except Bahrain, Cape Town, Milan, Osaka, Beijing, and Ningxia. For more information on how to use resource policies for schema registries, [136]please see the documentation.
Using Schema Registry resource policies, it is much easier to coordinate the work of different teams sharing information in an event-driven architecture.
Let me know what are you going to build with this!
â€" [137]Danilo
Danilo Poccia
[138]Danilo Poccia
Danilo works with startups and companies of any size to support their innovation. In his role as Chief Evangelist (EMEA) at Amazon Web Services, he leverages his experience to help people bring their ideas to life, focusing on serverless architectures and event-driven programming, and on the technical and business impact of machine aws-senior.com
  • aws security group audit trail
  • aws certified solutions architect - associate salary
  • aws cloudtrail use cases
  • aws user activity log
  • aws certification sample questions
  • aws cloudwatch cli
  • amazon tv network
  • aws config history
  • aws consulting inc lancaster pa
  • aws cloudwatch documentation

  • http://world-cup-2018-fifa.blogspot.com
    https://myiphone2010.blogspot.com
    https://oracle-support-2018.blogspot.com
    https://workdcup-2018.blogspot.com
    https://my-oracle-support.blogspot.com
    https://facebook2010.blogspot.com
    https://oracleerrormsgs.blogspot.com
    https://encysc0.blogspot.com
    https://orange-tunisie.blogspot.com
    http://workdcup-2018.blogspot.com
    https://swtools-spark.blogspot.com
    https://watch-live2018.blogspot.com
    https://cccamserver2013.blogspot.com
    https://makemoneyonline20016.blogspot.com
    https://aws-cloudtrail-tutorial.blogspot.com
    http://google-1-tips.blogspot.com
    https://trumansupport.blogspot.com
    https://debtadviceservice.blogspot.com
    https://aws-solutions-architect-certification.blogspot.com
    https://soft-pedia2010.blogspot.com
    https://amazon-job-search.blogspot.com
    https://revolutiontunisia2011.blogspot.com
    http://oracle-support-community.blogspot.com
    http://oracle-support-maintenance.blogspot.com
    https://oracleerror1.blogspot.com

    https://oracle-support-community.blogspot.com
    http://oracle-support-maintenance.blogspot.com
    https://aws-solutions-architect-certification.blogspot.com
    https://dreambox4you.blogspot.com
    http://oraclesupport2018.blogspot.com
    https://myiphone2010.blogspot.com
    https://updatefun.blogspot.com
    https://swtools-spark.blogspot.com
    https://facebook2010.blogspot.com
    https://debtadviceservice.blogspot.com
    http://google-1-tips.blogspot.com
    https://amazon-job-search.blogspot.com
    https://cccamserver2013.blogspot.com
    https://makemoneyonline20016.blogspot.com
    https://watchworldcup-2018.blogspot.com
    https://oracle-support-maintenance.blogspot.com
    https://support-for-oracle-applications.blogspot.com
    https://oracle-support-2018.blogspot.com
    https://watch-live2018.blogspot.com
    https://trumansupport.blogspot.com
    https://oracleerrormsgs.blogspot.com
    https://russie-foot-2018.blogspot.com
    http://watch-live2018.blogspot.com
    http://oracle-support-community.blogspot.com

    Aucun commentaire:

    Enregistrer un commentaire

    Nombre total de pages vues

    Adbox