summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorØyvind Grønnesby <oyving@verizonmedia.com>2021-01-28 09:07:15 +0100
committerGitHub <noreply@github.com>2021-01-28 09:07:15 +0100
commitb352ad4a77855294a8bb6949611641163e46419e (patch)
treed1b871f81077a4bead9e5b61dac590f96514f8ea
parent2574ce832f9bc586161df4198479f40c4b9fba3c (diff)
parentb7d3a81397199aa8d165a45f6c864ae791f492a2 (diff)
Merge pull request #16264 from vespa-engine/mortent/aws-secret
Create module for jdisc aws resources
-rw-r--r--dist/vespa.spec1
-rw-r--r--jdisc-cloud-aws/CMakeLists.txt3
-rw-r--r--jdisc-cloud-aws/OWNERS2
-rw-r--r--jdisc-cloud-aws/pom.xml43
-rw-r--r--jdisc-cloud-aws/src/main/java/com/yahoo/jdisc/cloud/aws/AwsParameterStore.java21
-rw-r--r--pom.xml1
6 files changed, 71 insertions, 0 deletions
diff --git a/dist/vespa.spec b/dist/vespa.spec
index 50d591bde5c..b19d1c9a201 100644
--- a/dist/vespa.spec
+++ b/dist/vespa.spec
@@ -612,6 +612,7 @@ fi
%{_prefix}/lib/jars/jackson-*.jar
%{_prefix}/lib/jars/javassist-*.jar
%{_prefix}/lib/jars/javax.*.jar
+%{_prefix}/lib/jars/jdisc-cloud-aws-jar-with-dependencies.jar
%{_prefix}/lib/jars/jdisc_core-jar-with-dependencies.jar
%{_prefix}/lib/jars/jdisc_http_service-jar-with-dependencies.jar
%{_prefix}/lib/jars/jdisc-security-filters-jar-with-dependencies.jar
diff --git a/jdisc-cloud-aws/CMakeLists.txt b/jdisc-cloud-aws/CMakeLists.txt
new file mode 100644
index 00000000000..cc53e39f6a5
--- /dev/null
+++ b/jdisc-cloud-aws/CMakeLists.txt
@@ -0,0 +1,3 @@
+# Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+install_fat_java_artifact(jdisc-cloud-aws)
+install_config_definitions()
diff --git a/jdisc-cloud-aws/OWNERS b/jdisc-cloud-aws/OWNERS
new file mode 100644
index 00000000000..e3da51bd047
--- /dev/null
+++ b/jdisc-cloud-aws/OWNERS
@@ -0,0 +1,2 @@
+mortent
+oyving
diff --git a/jdisc-cloud-aws/pom.xml b/jdisc-cloud-aws/pom.xml
new file mode 100644
index 00000000000..9089c5785c7
--- /dev/null
+++ b/jdisc-cloud-aws/pom.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>parent</artifactId>
+ <version>7-SNAPSHOT</version>
+ <relativePath>../parent/pom.xml</relativePath>
+ </parent>
+ <artifactId>jdisc-cloud-aws</artifactId>
+ <version>7-SNAPSHOT</version>
+ <packaging>container-plugin</packaging>
+ <name>${project.artifactId}</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>container-disc</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+</project> \ No newline at end of file
diff --git a/jdisc-cloud-aws/src/main/java/com/yahoo/jdisc/cloud/aws/AwsParameterStore.java b/jdisc-cloud-aws/src/main/java/com/yahoo/jdisc/cloud/aws/AwsParameterStore.java
new file mode 100644
index 00000000000..8e7678723e6
--- /dev/null
+++ b/jdisc-cloud-aws/src/main/java/com/yahoo/jdisc/cloud/aws/AwsParameterStore.java
@@ -0,0 +1,21 @@
+// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+package com.yahoo.jdisc.cloud.aws;
+
+import com.yahoo.container.jdisc.secretstore.SecretStore;
+
+/**
+ * @author mortent
+ */
+public class AwsParameterStore implements SecretStore {
+
+ @Override
+ public String getSecret(String key) {
+ return null;
+ }
+
+ @Override
+ public String getSecret(String key, int version) {
+ return null;
+ }
+}
diff --git a/pom.xml b/pom.xml
index 91286d35c4d..bb0991f1005 100644
--- a/pom.xml
+++ b/pom.xml
@@ -91,6 +91,7 @@
<module>indexinglanguage</module>
<module>jaxrs_client_utils</module>
<module>jaxrs_utils</module>
+ <module>jdisc-cloud-aws</module>
<module>jdisc-security-filters</module>
<module>jdisc_core</module>
<module>jdisc_core_test</module>