You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: terraform-hpvs/sample-paynow/README.md
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
-
## Contract generation example for the Paynow sample application
1
+
## Contract generation example for the PayNow sample application
2
2
3
3
This sample creates an encrypted and signed contract and stores it locally in a file. You can later use the contract to provision a HPVS for VPC instance.
4
4
The contract will define the container image, the container registry and the credentials for pulling your workload container image, as well as a server certificate and server key.
5
5
6
+
For more information, see this [tutorial](https://cloud.ibm.com/docs/vpc?topic=vpc-financial-transaction-confidential-computing-on-hyper-protect-virtual-server-for-vpc) and the [PayNow sample application](https://github.com/ibm-hyper-protect/paynow-website).
7
+
6
8
### Prerequisite
7
9
8
10
Prepare your local environment according to [these steps](../README.md)
@@ -17,12 +19,10 @@ Define your settings:
17
19
- registry: The container registry where the workload container image is pulled from, e.g. `us.icr.io`
18
20
- pull_username: The container registry username for pulling your workload container image
19
21
- pull_password: The container registry password for pulling your workload container image
20
-
- server_cert: The base64-encoded server certificate
21
-
- server_key: The base64-encoded server key"
22
-
23
-
The settings are defined in form of Terraform variables.
22
+
- server_cert: The base64-encoded SSL server certificate
23
+
- server_key: The base64-encoded SSL server key
24
24
25
-
Define the variables in a template file:
25
+
The settings are defined in form of Terraform variables in a template file:
The contract will be written to the file `build/contract.yml` and can now be used for e.g. provisining a HPVS for VPC instance.
40
40
41
41
Note that you will need to create a public gateway in your VPC before creating the HPVS for VPC instance. This is necessary to allow the HPVS for VPC instance to reach your Log instance through the public gateway. Also assign a floating IP to your HPVS for VPC instance.
42
-
43
-
See this [repository](https://github.com/ibm-hyper-protect/paynow-website) for a description and the source code of the Paynow sample application.
0 commit comments