diff --git a/app-infrastructure/configs/README.md b/app-infrastructure/configs/README.md new file mode 100644 index 0000000..fe82ecc --- /dev/null +++ b/app-infrastructure/configs/README.md @@ -0,0 +1,5 @@ +## Additional Information about WildFly Configuration +There is no module.xml in this repository. It has been moved to the [pic-sure-wildfly-docker repository](https://github.com/hms-dbmi/pic-sure-wildfly-docker). +The `module.xml` is created dynamically by the `generate-module-xml.sh` script in the pic-sure-wildfly-docker repository. This script is run when the +`pic-sure-with-aggregate-resource.Dockerfile` is built. The module.xml is created based on the jars copied into the +`opt/jboss/wildfly/modules/system/layers/base/com/sql/mysql/main/` directory in the docker image. \ No newline at end of file diff --git a/app-infrastructure/configs/standalone.xml b/app-infrastructure/configs/standalone.xml index 25d0473..1bdda76 100644 --- a/app-infrastructure/configs/standalone.xml +++ b/app-infrastructure/configs/standalone.xml @@ -164,17 +164,16 @@ - jdbc:mysql://${picsure-db-host}/auth?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true + jdbc-secretsmanager:mysql://${picsure-db-host}/auth?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true - mysql + aws-secretsmanager-mysql 2 10 true - ${picsure-db-username} - ${picsure-db-password} + ${app_user_secret_name} - jdbc:mysql://${picsure-db-host}/picsure?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true + jdbc-secretsmanager:mysql://${picsure-db-host}/picsure?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true - mysql + aws-secretsmanager-mysql 3 10 true - ${picsure-db-username} - ${picsure-db-password} + ${app_user_secret_name} org.h2.jdbcx.JdbcDataSource + + com.amazonaws.secretsmanager.sql.AWSSecretsManagerMySQLDriver + diff --git a/app-infrastructure/configs/wildfly_mysql_module.xml b/app-infrastructure/configs/wildfly_mysql_module.xml deleted file mode 100644 index cae67ca..0000000 --- a/app-infrastructure/configs/wildfly_mysql_module.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/app-infrastructure/mysql-connector-j-8.0.33.jar b/app-infrastructure/mysql-connector-j-8.0.33.jar deleted file mode 100644 index 3f741f5..0000000 Binary files a/app-infrastructure/mysql-connector-j-8.0.33.jar and /dev/null differ diff --git a/app-infrastructure/s3_roles.tf b/app-infrastructure/s3_roles.tf index 21d476b..f69fc23 100644 --- a/app-infrastructure/s3_roles.tf +++ b/app-infrastructure/s3_roles.tf @@ -1,121 +1,3 @@ - -resource "aws_iam_instance_profile" "wildfly-deployment-s3-profile" { - name = "wildfly-deployment-s3-profile-${var.target_stack}-${local.uniq_name}" - role = aws_iam_role.wildfly-deployment-s3-role.name -} - -resource "aws_iam_role_policy" "wildfly-deployment-s3-policy" { - name = "wildfly-deployment-s3-policy-${var.target_stack}-${local.uniq_name}" - role = aws_iam_role.wildfly-deployment-s3-role.id - policy = <