Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(iottwinmaker): add workspace, component type, entity, scene, syncjob #422

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

npellegrin
Copy link
Contributor

@npellegrin npellegrin commented Nov 17, 2024

Closes #421

IMPORTANT: To have the feature working, I had to give the endpoint in aws-nuke configuration. I guess it is the logic in pkg/awsutil/session.go not supporting the particular IoT TwinMaker endpoints. IoT TwinMaker have two endpoints:

  • api.iottwinmaker.us-west-1.amazonaws.com
  • data.iottwinmaker.us-west-1.amazonaws.com

The configuration to add to test this feature is:

endpoints:
  - region: eu-west-1
    services:
      - service: iottwinmaker
        url: iottwinmaker.eu-west-1.amazonaws.com

@npellegrin
Copy link
Contributor Author

npellegrin commented Nov 17, 2024

New resources

  • IoTTwinMakerWorkspace
  • IoTTwinMakerComponentType
  • IoTTwinMakerEntity
  • IoTTwinMakerScene
  • IoTTwinMakerSyncJob

Non-nukeable resources are marked as filtered.

Scan with feature activated

eu-west-1 - IoTTwinMakerSyncJob - arn:aws:iottwinmaker:eu-west-1:000000000000:workspace/test-level3-workspace/sync-job/SITEWISE-default - [workspaceId: "test-level3-workspace"] - would remove
eu-west-1 - IoTTwinMakerScene - test - [workspaceId: "test-level1-workspace"] - would remove
eu-west-1 - IoTTwinMakerScene - test-level2-twinmaker-scene - [workspaceId: "test-level2-workspace"] - would remove
eu-west-1 - IoTTwinMakerScene - test-level3-twinmaker-scene - [workspaceId: "test-level3-workspace"] - would remove
eu-west-1 - IoTTwinMakerScene - test - [workspaceId: "test"] - would remove
eu-west-1 - IoTTwinMakerWorkspace - test-level1-workspace - [tag:aws:cloudformation:logical-id: "Workspace", tag:aws:cloudformation:stack-id: "arn:aws:cloudformation:eu-west-1:000000000000:stack/test-level1-twinmaker-entities/209a1b50-96a7-11ef-bb66-06c679b9ae63", tag:aws:cloudformation:stack-name: "test-level1-twinmaker-entities"] - would remove
eu-west-1 - IoTTwinMakerWorkspace - test-level2-workspace - [tag:aws:cloudformation:logical-id: "Workspace", tag:aws:cloudformation:stack-id: "arn:aws:cloudformation:eu-west-1:000000000000:stack/test-level2-twinmaker-entities/8b0901a0-a4d4-11ef-a0ad-020b6f6d2901", tag:aws:cloudformation:stack-name: "test-level2-twinmaker-entities"] - would remove
eu-west-1 - IoTTwinMakerWorkspace - test-level3-workspace - [tag:aws:cloudformation:logical-id: "Workspace", tag:aws:cloudformation:stack-id: "arn:aws:cloudformation:eu-west-1:000000000000:stack/test-level3-twinmaker-entities/8b0a1310-a4d4-11ef-93e5-0664c395b7b5", tag:aws:cloudformation:stack-name: "test-level3-twinmaker-entities"] - would remove
eu-west-1 - IoTTwinMakerWorkspace - test - [tag:TwinMakerDashboardRole: "arn:aws:iam::000000000000:role/testDashboard", tag:testtag: "abc"] - would remove
eu-west-1 - IoTTwinMakerEntity - 99207bdc-e92d-4ac9-8751-1b118e358533 - [name: "mixer_99207bdc-e92d-4ac9-8751-1b118e358533", status: "ACTIVE", workspaceId: "test-level1-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - SCENES_EntityId - [name: "$SCENES", status: "ACTIVE", workspaceId: "test-level1-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - SCENE_test_f20ee5b0-b9e6-47a6-bcf7-5d6a0239a15e - [name: "SCENE_test_f20ee5b0-b9e6-47a6-bcf7-5d6a0239a15e", status: "ACTIVE", workspaceId: "test-level1-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - SCENE_test_7a7a2e57-830d-4c39-88db-a7a1cb8894ac - [name: "SCENE_test_7a7a2e57-830d-4c39-88db-a7a1cb8894ac", status: "ACTIVE", workspaceId: "test-level1-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - 5334a32f-37fc-4be6-8780-74c4e0f9112a - [name: "HorizontalConveyor_1", status: "ACTIVE", workspaceId: "test-level2-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - 1a365836-5ba1-4967-8cd2-0770ae8bc1b5 - [name: "VerticalConveyor_1", status: "ACTIVE", workspaceId: "test-level2-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - 2bd89f30-ed7b-48c9-8a10-bdc07827aff0 - [name: "Mixer_1", status: "ACTIVE", workspaceId: "test-level2-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - 4aa07c9f-9a6b-40d0-97c3-314f4463f101 - [name: "Oven_1", status: "ACTIVE", workspaceId: "test-level2-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - 4ab0cc18-7f7f-4178-9ae0-29300bc7833b - [name: "TestMaker_1", status: "ACTIVE", workspaceId: "test-level2-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - 11553c8d-691d-4605-9cf6-dde7e23a0cc2 - [name: "TestMaker_1", status: "ACTIVE", workspaceId: "test-level3-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - 859e40e2-4c2f-453c-8256-a46962ad4e35 - [name: "Oven_1", status: "ACTIVE", workspaceId: "test-level3-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - 3e1282e3-d408-4a68-8650-9e50d516b382 - [name: "VerticalConveyor_1", status: "ACTIVE", workspaceId: "test-level3-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - aed82054-528a-40cf-9a67-a88da2635b49 - [name: "Mixer_1", status: "ACTIVE", workspaceId: "test-level3-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - 4bd675da-f24a-4bad-8df4-6f955eaf8bf4 - [name: "HorizontalConveyor_1", status: "ACTIVE", workspaceId: "test-level3-workspace"] - would remove
eu-west-1 - IoTTwinMakerEntity - SCENE_test_26e05e0f-8664-4b5c-a6e1-6980e2f1a82d - [name: "SCENE_test_26e05e0f-8664-4b5c-a6e1-6980e2f1a82d", status: "ACTIVE", workspaceId: "test"] - would remove
eu-west-1 - IoTTwinMakerEntity - SCENES_EntityId - [name: "$SCENES", status: "ACTIVE", workspaceId: "test"] - would remove
eu-west-1 - IoTTwinMakerEntity - 2b25d4fe-a03c-4cf2-8580-47fb6e762578 - [name: "test", status: "ACTIVE", workspaceId: "test"] - would remove
eu-west-1 - IoTTwinMakerComponentType - com.amazon.athena.connector - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.alarm - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.connector - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.connector.edgevideo - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.managed - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.managed.compositemodel - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.resourcesync - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.camera - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.dataoverlay - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.light - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.modelref - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.modelshader - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.motionindicator - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.submodelref - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.tag - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.node - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.scene - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.alarm.basic - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.documents - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.parameters - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.kvs.video - [workspaceId: "test-level1-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.athena.connector - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.alarm - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.connector - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.connector.edgevideo - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.managed - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.managed.compositemodel - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.resourcesync - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.camera - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.dataoverlay - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.light - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.modelref - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.modelshader - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.motionindicator - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.submodelref - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.tag - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.node - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.scene - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.alarm.basic - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.documents - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.parameters - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.kvs.video - [workspaceId: "test-level2-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.athena.connector - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.alarm - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.connector - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.connector.edgevideo - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.managed - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.managed.compositemodel - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.resourcesync - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.camera - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.dataoverlay - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.light - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.modelref - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.modelshader - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.motionindicator - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.submodelref - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.tag - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.node - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.scene - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.alarm.basic - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.documents - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.parameters - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.kvs.video - [workspaceId: "test-level3-workspace"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - custom.test.nuke - [tag:testtagscomponent: "test", workspaceId: "test"] - would remove
eu-west-1 - IoTTwinMakerComponentType - com.amazon.athena.connector - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.alarm - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.connector - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.connector.edgevideo - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.managed - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.managed.compositemodel - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iotsitewise.resourcesync - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.camera - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.dataoverlay - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.light - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.modelref - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.modelshader - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.motionindicator - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.submodelref - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.component.tag - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.node - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.3d.scene - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.alarm.basic - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.documents - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.iottwinmaker.parameters - [workspaceId: "test"] - cannot delete pre-defined component type
eu-west-1 - IoTTwinMakerComponentType - com.amazon.kvs.video - [workspaceId: "test"] - cannot delete pre-defined component type
Scan complete: 111 total, 27 nukeable, 84 filtered.

Nuke with feature activated

eu-west-1 - IoTTwinMakerSyncJob - arn:aws:iottwinmaker:eu-west-1:000000000000:workspace/test-level3-workspace/sync-job/SITEWISE-default - [workspaceId: "test-level3-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerScene - test - [workspaceId: "test-level1-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerScene - test-level2-twinmaker-scene - [workspaceId: "test-level2-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerScene - test-level3-twinmaker-scene - [workspaceId: "test-level3-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerScene - test - [workspaceId: "test"] - triggered remove
eu-west-1 - IoTTwinMakerWorkspace - test-level1-workspace - [tag:aws:cloudformation:logical-id: "Workspace", tag:aws:cloudformation:stack-id: "arn:aws:cloudformation:eu-west-1:000000000000:stack/test-level1-twinmaker-entities/209a1b50-96a7-11ef-bb66-06c679b9ae63", tag:aws:cloudformation:stack-name: "test-level1-twinmaker-entities"] - failed
eu-west-1 - IoTTwinMakerWorkspace - test-level2-workspace - [tag:aws:cloudformation:logical-id: "Workspace", tag:aws:cloudformation:stack-id: "arn:aws:cloudformation:eu-west-1:000000000000:stack/test-level2-twinmaker-entities/8b0901a0-a4d4-11ef-a0ad-020b6f6d2901", tag:aws:cloudformation:stack-name: "test-level2-twinmaker-entities"] - failed
eu-west-1 - IoTTwinMakerWorkspace - test-level3-workspace - [tag:aws:cloudformation:logical-id: "Workspace", tag:aws:cloudformation:stack-id: "arn:aws:cloudformation:eu-west-1:000000000000:stack/test-level3-twinmaker-entities/8b0a1310-a4d4-11ef-93e5-0664c395b7b5", tag:aws:cloudformation:stack-name: "test-level3-twinmaker-entities"] - failed
eu-west-1 - IoTTwinMakerWorkspace - test - [tag:TwinMakerDashboardRole: "arn:aws:iam::000000000000:role/testDashboard", tag:testtag: "abc"] - failed
eu-west-1 - IoTTwinMakerEntity - 99207bdc-e92d-4ac9-8751-1b118e358533 - [name: "mixer_99207bdc-e92d-4ac9-8751-1b118e358533", status: "ACTIVE", workspaceId: "test-level1-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - SCENES_EntityId - [name: "$SCENES", status: "ACTIVE", workspaceId: "test-level1-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - SCENE_test_f20ee5b0-b9e6-47a6-bcf7-5d6a0239a15e - [name: "SCENE_test_f20ee5b0-b9e6-47a6-bcf7-5d6a0239a15e", status: "ACTIVE", workspaceId: "test-level1-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - SCENE_test_7a7a2e57-830d-4c39-88db-a7a1cb8894ac - [name: "SCENE_test_7a7a2e57-830d-4c39-88db-a7a1cb8894ac", status: "ACTIVE", workspaceId: "test-level1-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - 5334a32f-37fc-4be6-8780-74c4e0f9112a - [name: "HorizontalConveyor_1", status: "ACTIVE", workspaceId: "test-level2-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - 1a365836-5ba1-4967-8cd2-0770ae8bc1b5 - [name: "VerticalConveyor_1", status: "ACTIVE", workspaceId: "test-level2-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - 2bd89f30-ed7b-48c9-8a10-bdc07827aff0 - [name: "Mixer_1", status: "ACTIVE", workspaceId: "test-level2-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - 4aa07c9f-9a6b-40d0-97c3-314f4463f101 - [name: "Oven_1", status: "ACTIVE", workspaceId: "test-level2-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - 4ab0cc18-7f7f-4178-9ae0-29300bc7833b - [name: "TestMaker_1", status: "ACTIVE", workspaceId: "test-level2-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - 11553c8d-691d-4605-9cf6-dde7e23a0cc2 - [name: "TestMaker_1", status: "ACTIVE", workspaceId: "test-level3-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - 859e40e2-4c2f-453c-8256-a46962ad4e35 - [name: "Oven_1", status: "ACTIVE", workspaceId: "test-level3-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - 3e1282e3-d408-4a68-8650-9e50d516b382 - [name: "VerticalConveyor_1", status: "ACTIVE", workspaceId: "test-level3-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - aed82054-528a-40cf-9a67-a88da2635b49 - [name: "Mixer_1", status: "ACTIVE", workspaceId: "test-level3-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - 4bd675da-f24a-4bad-8df4-6f955eaf8bf4 - [name: "HorizontalConveyor_1", status: "ACTIVE", workspaceId: "test-level3-workspace"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - SCENE_test_26e05e0f-8664-4b5c-a6e1-6980e2f1a82d - [name: "SCENE_test_26e05e0f-8664-4b5c-a6e1-6980e2f1a82d", status: "ACTIVE", workspaceId: "test"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - SCENES_EntityId - [name: "$SCENES", status: "ACTIVE", workspaceId: "test"] - triggered remove
eu-west-1 - IoTTwinMakerEntity - 2b25d4fe-a03c-4cf2-8580-47fb6e762578 - [name: "test", status: "ACTIVE", workspaceId: "test"] - triggered remove
eu-west-1 - IoTTwinMakerComponentType - custom.test.nuke - [tag:testtagscomponent: "test", workspaceId: "test"] - failed

Removal requested: 22 waiting, 5 failed, 84 skipped, 0 finished

...

eu-west-1 - IoTTwinMakerSyncJob - arn:aws:iottwinmaker:eu-west-1:000000000000:workspace/test-level3-workspace/sync-job/SITEWISE-default - [workspaceId: "test-level3-workspace"] - removed
eu-west-1 - IoTTwinMakerWorkspace - test-level3-workspace - [tag:aws:cloudformation:logical-id: "Workspace", tag:aws:cloudformation:stack-id: "arn:aws:cloudformation:eu-west-1:000000000000:stack/test-level3-twinmaker-entities/8b0a1310-a4d4-11ef-93e5-0664c395b7b5", tag:aws:cloudformation:stack-name: "test-level3-twinmaker-entities"] - removed

Removal requested: 0 waiting, 0 failed, 84 skipped, 27 finished

Nuke complete: 0 failed, 84 skipped, 27 finished.

@npellegrin npellegrin force-pushed the feature/iot-twinmaker branch 7 times, most recently from c5b222c to 5b5eda8 Compare November 17, 2024 18:49
@ekristen
Copy link
Owner

Interesting on the endpoint configuration. I'm working on AWS SDK v2 support which is going to require a bit of work around endpoints.

What happens if you do not provide the endpoint configuration? How do the resources behave? I can test later, just don't have time at the moment.

Copy link
Owner

@ekristen ekristen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@npellegrin thanks again for your contribution. If you don't mind please see my comments on the other pull request, it talks about renaming the pointers from like f to r and updating how the properties function works.

If you'd prefer I can push a commit to do the standardization changes instead.

I do appreciate the effort and the support! It is much appreciated.

resources/iottwinmaker-component-type.go Outdated Show resolved Hide resolved
resources/iottwinmaker-component-type.go Outdated Show resolved Hide resolved
resources/iottwinmaker-component-type.go Show resolved Hide resolved
@npellegrin
Copy link
Contributor Author

Interesting on the endpoint configuration. I'm working on AWS SDK v2 support which is going to require a bit of work around endpoints.

What happens if you do not provide the endpoint configuration? How do the resources behave? I can test later, just don't have time at the moment.

If I do not add the endpoint, the resource is ignored and I can see the error in debug logs service 'iottwinmaker' is was not found in the endpoint list; assuming it is not global.

@npellegrin
Copy link
Contributor Author

@npellegrin thanks again for your contribution. If you don't mind please see my comments on the other pull request, it talks about renaming the pointers from like f to r and updating how the properties function works.

If you'd prefer I can push a commit to do the standardization changes instead.

I do appreciate the effort and the support! It is much appreciated.

Thanks for the quick feedback!

I will do the changes in both PR :)

@npellegrin npellegrin force-pushed the feature/iot-twinmaker branch 2 times, most recently from 97fb1f8 to d64cbf0 Compare November 17, 2024 20:40
@npellegrin npellegrin requested a review from ekristen November 17, 2024 22:15
@npellegrin npellegrin force-pushed the feature/iot-twinmaker branch from d64cbf0 to 4a2ec59 Compare November 17, 2024 22:30
@npellegrin
Copy link
Contributor Author

npellegrin commented Nov 17, 2024

I fixed the endpoint issue with the same trick already in place for s3control, no need to add a specific YAML config with this resource :)

if service == s3control.ServiceName {
	service = s3control.EndpointsID
	// Rewrite S3 Control ServiceName to proper EndpointsID
	// https://github.com/rebuy-de/aws-nuke/issues/708
}
if service == iottwinmaker.ServiceName {
	service = iottwinmaker.EndpointsID
	// IoTTwinMaker have two endpoints, must point on "api" one
	// https://docs.aws.amazon.com/iot-twinmaker/latest/guide/endpionts-and-quotas.html
}

@ekristen ekristen merged commit 1ffd923 into ekristen:main Nov 19, 2024
4 checks passed
@ekristen
Copy link
Owner

🎉 This PR is included in version 3.31.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[resource] IoTTwinMaker
2 participants