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

Stian Rusvik #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,23 @@ public class OrderController {
private String topicArn;
private String eventBusName;

private String ruleArn;
private String queueArn;
private String subscriptionArn;

public OrderController() {
this.sqsClient = SqsClient.builder().build();
this.snsClient = SnsClient.builder().build();
this.eventBridgeClient = EventBridgeClient.builder().build();

this.queueUrl = "";
this.topicArn = "";
this.eventBusName = "";
this.queueUrl = "https://sqs.eu-west-1.amazonaws.com/637423341661/stian96OrderQueue";
this.topicArn = "arn:aws:sns:eu-west-1:637423341661:stian96OrderCreatedTopic";
this.eventBusName = "arn:aws:events:eu-west-1:637423341661:event-bus/stian96CustomEventBus";

// Possibly don't need these.
this.ruleArn = "arn:aws:events:eu-west-1:637423341661:rule/stian96CustomEventBus/stian96OrderProcessedRule";
this.queueArn = "arn:aws:sqs:eu-west-1:637423341661:stian96OrderQueue";
this.subscriptionArn = "arn:aws:sns:eu-west-1:637423341661:stian96OrderCreatedTopic:c13f6ffa-43f7-4f5c-bd6e-0566cb11cbd5";

this.objectMapper = new ObjectMapper();
}
Expand Down