From 40b8a7ff374c07be17a27200807fd938944c6f89 Mon Sep 17 00:00:00 2001 From: Luke <lomah001@gold.ac.uk> Date: Mon, 22 Apr 2019 11:58:36 +0100 Subject: [PATCH] upd: added configuration for aws iot communication --- src/main/resources/application.properties | 10 +++++++--- src/main/resources/application.yml | 9 +++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/application.yml diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index f9d5ddc..2167e55 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -15,12 +15,16 @@ spring.jackson.time-zone = UTC app.jwtSecret = JWTSuperSecretKey app.jwtExpirationInMs = 604800000 -## AWS Properties +## aws Properties cloud.aws.credentials.accessKey = AKIAIU4RE7WTMIORTNJA cloud.aws.credentials.secretKey = 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 cloud.aws.credentials.instanceProfile = true cloud.aws.credentials.useDefaultAwsCredentialsChain = true cloud.aws.region.static = eu-west-1 - - +# aws iot properties +ixortalk.client.aws.endpoint = a2atwjvz13hwor-ats.iot.eu-west-1.amazonaws.com +ixortalk.client.aws.client-id = ixortalk-iot-client-${random.int} +ixortalk.client.aws.default-topic = sdk/test/java +ixortalk.client.aws.certificate-file = /Users/Luke/Desktop/Repositories/glowhouse-workspace/glowhouse-backend/glowhouse/src/main/resources/aws/cert.crt +ixortalk.client.aws.private-0key-file = /Users/Luke/Desktop/Repositories/glowhouse-workspace/glowhouse-backend/glowhouse/src/main/resources/aws/private.key diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..7b1004e --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,9 @@ +ixortalk: + iot: + client: + aws: + endpoint: "a2atwjvz13hwor-ats.iot.eu-west-1.amazonaws.com" + client-id: ixortalk-iot-client-${random.int} + default-topic: sdk/test/java + certificate-file: "/Users/Luke/Desktop/Repositories/glowhouse-workspace/glowhouse-backend/glowhouse/src/main/resources/aws/cert.crt" + private-key-file: "/Users/Luke/Desktop/Repositories/glowhouse-workspace/glowhouse-backend/glowhouse/src/main/resources/aws/private.key" \ No newline at end of file -- GitLab