In this step we will test the Step Functions that created previously.
Go to the Step Functions service and on States machines select the name of the newly created one PREFIX_StateMachine.
Select Start execution
{
"version": "0",
"id": "cd2d702e-ab31-411b-9344-793ce56b1bc7",
"detail-type": "GuardDuty Finding",
"source": "aws.guardduty",
"account": "<<Account ID>>",
"time": "1970-01-01T00:00:00Z",
"region": "us-east-1",
"resources": [],
"detail": {
"schemaVersion": "2.0",
"accountId": "<<Account ID>>",
"region": "us-east-1",
"partition": "aws",
"id": "b0baa89de4ab301f8d0a8c9a3dfd5726",
"arn": "arn:aws:guardduty:us-east-1:<<Account ID>>:detector/feb3c048238f682b8902532ec100b3fb/finding/b0baa89de4ab301f8d0a8c9a3dfd5726",
"title": "Bitcoin-related domain name queried by EC2 instance <<Instance ID>>.",
"type": "CryptoCurrency:EC2/BitcoinTool.B!DNS",
"severity": 8,
"resource": {
"instanceDetails": {
"instanceId": "<<Instance ID>>"
}
}
}
}
Can you answer the following questions?
• Which Security Group does it have?
• Which tags does it have ?
• Is there any snapshot related to the instance?
Can you answer the following questions?
• Has the Security Group changed?
• Have the tags changed?
• Has any new Snapshot been created?
• Log in with a different Internet browser or using private mode, use the link on the IAM Dashboard (as seen below) and verify if you can delete the EC2 with the IAM user testuser that you created during the Setup steps.
• Are you able to delete the instance?
Test the State Machine with a different severity
When you are done with all the steps, head to the next part of the Workshop which is Create a EventBridge Rule