- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Cloudcraft’s Auto Layout feature, accessible through the web application, is a powerful tool for automatically generating diagrams of your AWS environment. This functionality can significantly streamline documentation processes and facilitate the onboarding of new team members.
This guide provides a step-by-step approach to utilizing this feature via common command-line utilities and the Cloudcraft developer API.
Start by creating a snapshot of your AWS or Azure account using the Snapshot AWS account or Snapshot Azure account endpoints. This process mirrors the functionality of the Scan Now button in the Cloudcraft UI and outputs the snapshot in JSON format.
Execute the following command in your terminal:
curl \
--url 'https://api.cloudcraft.co/PROVIDER/account/ACCOUNT_ID/REGION/json' \
--tlsv1.2 \
--proto '=https' \
--silent \
--header "Authorization: Bearer API_KEY"
Replace PROVIDER
with the cloud provider, for example, azure
or aws
, ACCOUNT_ID
with the ID of your AWS or Azure account in Cloudcraft, REGION
with your desired scan region, and API_KEY
with your Cloudcraft API key.
After executing the command, the JSON representation of your AWS account snapshot is displayed. To save this output directly to a file, use the following command:
curl \
--url 'https://api.cloudcraft.co/PROVIDER/account/ACCOUNT_ID/REGION/json' \
--tlsv1.2 \
--proto '=https' \
--silent \
--header "Authorization: Bearer API_KEY" > '/tmp/account-infra.json'
The snapshot is saved with the filename account-infra.json
in your temporary directory.
Next, create a new blueprint in your Cloudcraft account using the Create blueprint API endpoint. The saved snapshot data serves as the payload for this request.
Execute the following command in your terminal:
curl \
--request 'POST' \
--url 'https://api.cloudcraft.co/blueprint' \
--tlsv1.2 \
--proto '=https' \
--silent \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer API_KEY" \
--data '@/tmp/account-infra.json'
Remember to replace API_KEY
with your actual Cloudcraft API key.
Upon completion, a new blueprint reflecting your cloud infrastructure is created in your Cloudcraft account, replicating the effect of manually using the Scan Now and Auto Layout buttons.
If you have any questions or trouble with the process, contact Cloudcraft’s support team.