-
Notifications
You must be signed in to change notification settings - Fork 5
AWS Reference Implementation
caspears edited this page Apr 26, 2023
·
13 revisions
A version of this reference implementation is hosted at https://cpcds-server.lantanagroup.com
- The fhir endpoint is https://cpcds-server.lantanagroup.com/fhir
- The oauth endpoint is https://cpcds-server.lantanagroup.com/oauth
- The debug endpoint is https://cpcds-server.lantanagroup.com/debug
- To register a new client go to https://cpcds-server.lantanagroup.com/oauth/register/client
Using the base url https://cpcds-server.lantanagroup.com the following endpoints are available:
Endpoint | Method | Description |
---|---|---|
oauth/register/client |
GET |
Webpage to register a new client |
oauth/authorization |
GET |
Webpage for user to login and obtain an access code as part of OAuth flow |
oauth/token |
POST |
OAuth token endpoint to exchange an access code for an access token |
debug/Log |
GET |
Server log |
debug/Clients |
GET |
Webpage for viewing the Clients table |
debug/Users |
GET |
Webpage for viewing the Users table |
fhir/metadata |
GET |
Capability statement for the fhir server |
.well-known/smart-configuration |
GET |
Smart Configuration JSON object |
- Create a new EC2 instance: t3.large running Ubuntu 18.04 with security group "Port 80"
- SSH into the instance with
ssh -i {pem file} ubuntu@{ipv6}
- Install docker
$ sudo apt update -y
$ sudo snap install docker
- Pull the latest image:
sudo docker pull {image name from dockerhub}
- Run the container:
sudo docker run -d -p 80:8080 {image name}
Note: every time the AWS url changes you will need to update server_address
in src/main/resources/hapi.properties
- Build the latest image:
./build-docker-image.sh
- Push the latest image:
docker push {your dockerhub username}/cpcds-server-ri
- SSH into the instance with
ssh -i {pem file} ubuntu@{ipv6}
- Pull the latest image:
sudo docker pull {your dockerhub username}/cpcds-server-ri
- Stop the current image:
sudo docker stop {container name}
- Run the container:
sudo docker run -d -p 80:8080 -e ADMIN_TOKEN=admin -e SERVER_ADDRESS=https://cpcds-server.lantanagroup.com/fhir/ {your dockerhub username}/cpcds-server-ri