AWS Control Tower API

0

Hello team !

AWS has now launched API calls for automating implementation of Control tower. Here are the API calls which they have released .

Enter image description here Now , How can I leverage this API calls ? Using Boto3 or CLI or IaC(terraform )

1 Antwort
0

You can basically use any of those mechanisms to setup your landing zone. You could use CLI, with a command like this:

aws create-landing-zone
--manifest <value>
[--tags <value>]
--landing-zone-version <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]

which could be very helpfull if you want to execute it from command line due to given parameters, or to make it repeatable.

Another option, if you have a need for scripting the landing zone creation, would be to leverage the SDK/Boto3, using the create_landing_zone function, a syntax similar to this in your code:

response = client.create_landing_zone(
    manifest={...}|[...]|123|123.4|'string'|True|None,
    tags={
        'string': 'string'
    },
    version='string'
)

These are examples for creating a landing zone, however, you could use the other functions to interact with Control Tower function without using the console.

profile pictureAWS
Renato
beantwortet vor 5 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen