IBM Sterling Connect:Direct: Configuring C:D to use AWS S3 Storage
Here we provided the steps to setup Connect:Direct to use AWS S3 Storage.
Important:
- Confirm that you have connectivity to AWS site.
- If you are running C:D in RH OpenShift, confirm that you have an egress network policy with permission to connect to AWS site.
Create Crendentials file
Change to node configuration directory
cd /opt/cdunix/ndm/cfg/<NODENAME>
Create file aws_credentials as follow:
[default] aws_access_key_id = A...2 aws_secret_access_key = 1M...ZW
Save and Close the file
Configure initparm.cfg
Edit initparm.cfg and add these parameters:
# S3 IO Exit parameters file.ioexit:\ :name=s3:\ :library=/opt/cdunix/ndm/lib/libcdjnibridge.so:\ :home.dir=/opt/cdunix/ndm/ioexit-plugins/s3:\ :options=-Xmx640m \ -Ds3.region=us-east-1 -Ds3.profilePath=/opt/cdunix/ndm/cfg/<NODENAME>/aws_credentials \ -Dcom.ibm.tools.attach.enable=no \ -Djava.class.path=/opt/cdunix/ndm/ioexit-plugins/s3/cd-s3-ioexit.jar com.aricent.ibm.mft.connectdirect.s3ioexit.S3IOExitFactory:
Save and Close.
Put a file in S3 Bucket
CD1toS3 process snode=<NODENAME> step01 copy from ( file = /opt/cdunix/ndm/cfg/msgfile.cfg ) to ( file = s3://<BUCKET NAME>/demo_s3.txt disp = rpl ) pend;
Get a file from S3 Bucket
CD1fromS3 process snode=<NODENAME> step01 copy from ( file = s3://<BUCKET NAME>/Report.pdf ) to ( file = /home/appuser/Report.pdf disp = rpl ) pend;