arcgis-cookbook icon indicating copy to clipboard operation
arcgis-cookbook copied to clipboard

Need ability to pull installs from s3 compatible repositories

Open jamesrn opened this issue 5 months ago • 4 comments
trafficstars

Need ability to pull installs from s3 compatible repositories. Potentially by using the --endpoint-url parameter in https://github.com/Esri/arcgis-cookbook/tree/main/cookbooks/arcgis-repository/libraries/util.rb depending on what tool/library is being used to trigger the download.

jamesrn avatar Jun 20 '25 14:06 jamesrn

Hi @jamesrn,

There is the arcgis-repository::s3files2 recipe that can be used to download the setups from an aws S3 bucket. In the templates we have some examples.

Windows sample:

https://github.com/Esri/arcgis-cookbook/blob/main/templates/arcgis-enterprise-base/11.5/windows/arcgis-enterprise-s3files.json

Linux sample: https://github.com/Esri/arcgis-cookbook/blob/main/templates/arcgis-enterprise-base/11.5/linux/arcgis-enterprise-s3files.json

To use IAM Role authentication either omit or leave the arcgis.repository.aws_access_key and arcgis.repository.aws_secret_access_key attributes empty.

cameronkroeker avatar Jun 20 '25 15:06 cameronkroeker

Thanks @cameronkroeker , the only issue is that if my organization has our own s3 compatible server there is no way to feed the url in as it's currently using the default AWS endpoints. I think there would need to be an over-ride own the default urls in util.rb?

For example if my s3 compatible server was at https://mys3server.myorg.com

jamesrn avatar Jun 20 '25 15:06 jamesrn

Oh! Okay so you would like to be able to pass in your own endpoint url attribute that would override the default endpoint which is set by:

https://github.com/Esri/arcgis-cookbook/blob/e38a45de310b49a8886e5a2a266c909a9b33d354/cookbooks/arcgis-repository/libraries/utils.rb#L25-L37

cameronkroeker avatar Jun 20 '25 16:06 cameronkroeker

@cameronkroeker correct!

jamesrn avatar Jun 20 '25 16:06 jamesrn