http://coldfusion.com logo
Docs
Join the conversationJoin Slack
Channels
adobe
advent-of-code
auwcl
aws
books
bot-dev
box-products
cfeclipse
cfkrauts
cflint
cfml-beginners
cfml-general
cfml-tuning
cfsummit2022
cfwheels
ci
community_courses
css
devops-general
docker
docker-commandbox
documentation
events
friday-puzzle
fusion-reactor
fw1
ide
java-and-jvm
javascript
jobs
jobs-non-us
linen-dev
lucee
masacms
meta
migrations
mura
music
nosql
object-oriented
orm
perf-monitor
prog-general
slack-help
sql
taffy
testing
version-control
vuejs
water-cooler
Powered by Linen
aws
  • p

    paul

    05/23/2022, 11:12 AM
    So @Mark Takata (Adobe) and updates with regards to lambda?
  • m

    Mark Takata (Adobe)

    05/23/2022, 2:53 PM
    Hey Paul! Nothing I can share unfortunately, but we are still continuing to explore options.
    😒 2
  • i

    iknowkungfoo

    06/16/2022, 11:24 PM
    Has anyone tested this new service from AWS? https://aws.amazon.com/rds/aurora/babelfish/
  • i

    iknowkungfoo

    06/16/2022, 11:26 PM
    Running SQL Server on Aurora PostgreSQL?
  • p

    paul

    06/17/2022, 12:49 AM
    Yep
  • p

    paul

    06/17/2022, 12:49 AM
    It's good, like your using SQL Server
    g
    3 replies · 2 participants
  • p

    philcruz

    08/16/2022, 9:15 PM
    Trying to publish a message to SNS using the Java SDK that has message attributes. Can anyone share an example?
    r
    2 replies · 2 participants
  • m

    Mark Berning

    08/23/2022, 2:06 PM
    We have started the upgrade from CF 2018 --> 2021. We want to migrate many sets of files from an on premise web application to AWS served through CloudFront and S3. During this process we will need to "register" in a DB the new path for the folder (AWS prefix). We don't register every file just top level directory. A typical upload will consist of ~2000-3000 small files (html, gif, png) and a few large files (+100 MB). My plan is to: 1. Mount the disk currently used for the Web Server to the CF server (both on-premise) read only 2. With CF web application pick the current registration (knows the current web server path) 3. Ask for the new folder location in the S3 bucket 4. Upload the files - I am guessing this will take considerable amount of time, longer than current CF page timeout 5. Update the registration to point to AWS S3 bucket With all of the S3 built-in functions as well as using AWS REST functions (currently using), what is the most efficient way to code the upload: • uploadDirectory - easiest to code, but don't know if it does any of parallel, multi-part or will be the most efficient loop through all files and upload individually: • parallelUploadFile • multipartUpload • uploadObject • uploadObject but use threading (arrayMap, structMap, traditional threading) • Using REST API (cfhttp) A couple other notes: We would be using our staging CF server, not our production server, to do this. We don't want to upload all files currently on the web server, we want to be selective. The directory structures on the web server are not an exact path match to AWS S3 buckets and therefore may need manual prompting. It is not just upload but we also need to update the DB. Thoughts/comments/suggestions?
    f
    1 reply · 2 participants
  • b

    brianklaas

    08/24/2022, 7:20 PM
    If you're willing to live with a request timeout setting of more than 60 seconds, you should be able to upload a couple hundred MB of data in a single request. You could then use the uploadDirectory method of ColdFusion 2021's built-in S3 support. I don't personally know if uploadDirectory works in a multithreaded way — that would be a question for the Adobe engineers. The AWS Java SDK definitely is multithreaded, however. multipartUpload is really only good for very large files — a gigabyte or more in size. It doesn't sound like you have many of those.
    p
    1 reply · 2 participants
  • b

    bdw429s

    11/09/2022, 4:17 PM
    I'm working on adding server-side encryption support to Ortus' S3SDK and I'm getting hung up on something that seems simple and I'm curious if anyone can help me here. Without getting bogged down in the details, I'm testing out customer-provided server-side encryption keys which are provided to the REST API via the HTTP headers documented here: https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html#specifying-s3-c-encryption • the encryption key needs to be a 256-bit base64-encoded, so I used
    generatesecretkey( 'AES', '256' )
    • The base64-coded MD5 hash of the key I tried two different ways-- ◦ by hashing the base64-encoded key
    toBase64( hash( key ) )
    ◦ or hashing the original binary key
    toBase64( hash( toBinary( key ) ) )
    However, no matter what I do, I get this error back from the AWS REST API
    The calculated MD5 hash of the key did not match the hash that was provided.
    I'm having a hard time finding a specific reference online that shows examples of what an AES256 key and it's hash would look like, but I can see that my values are not matching examples I see in tickets online. Is anyone, perhaps more familiar with how AWS does stuff, able to see what I'm doing wrong here?
    p
    17 replies · 2 participants
  • b

    bdw429s

    11/09/2022, 8:00 PM
    ☝️ Got this working 😉
  • b

    bdw429s

    11/09/2022, 8:00 PM
    p
    1 reply · 2 participants
  • c

    Cameron Childress

    12/01/2022, 4:28 PM
    Lambda snap start was announced at re:Invent a couple of days ago. Seems to have a pretty significant impact on Java based apps. I wonder if this will breath any life into Fuseless. https://aws.amazon.com/blogs/aws/new-accelerate-your-lambda-functions-with-lambda-snapstart/
    👍 1
    f
    m
    +2
    17 replies · 5 participants
  • m

    Mark Berning

    12/12/2022, 8:32 PM
    I am looking to use the new AWS S3 capabilities in CF 2021. It looks like I am forced to go into the CF Administrator to add Cloud Credentials and Cloud Configuration before I can use it or can I define that on the fly? The reason I am asking is we rotate our keys and retrieve the new keys and store them encrypted in a DB. Anyone have experience using the new AWS S3 functions?
    j
    p
    9 replies · 3 participants
Powered by Linen
Title
m

Mark Berning

12/12/2022, 8:32 PM
I am looking to use the new AWS S3 capabilities in CF 2021. It looks like I am forced to go into the CF Administrator to add Cloud Credentials and Cloud Configuration before I can use it or can I define that on the fly? The reason I am asking is we rotate our keys and retrieve the new keys and store them encrypted in a DB. Anyone have experience using the new AWS S3 functions?
Ok answered my own question. You can define the the credentials and the config via structures, https://helpx.adobe.com/coldfusion/using/integrate-coldfusion-amazon-s3.html#Structsforbothcredentialandconfigurationoptions Unfortunately the config arguments names are not documented. They are documented as far as the names in CF administrator page, but not if you are going to define them via structure on a page. https://helpx.adobe.com/coldfusion/configuring-administering/using-the-coldfusion-administrator.html#cloud-conf Theoretically I could use the admin page to define the configuration.
j

jakobward

12/12/2022, 9:52 PM
☝️🏻 started to type that a bit ago but was stuck in a meeting. Definitely a few options.
👍🏻 1
p

paul

12/12/2022, 10:33 PM
You can also define in App.cfc
I'd really love to see IAM auth added.
👍 1
m

Mark Berning

12/12/2022, 10:35 PM
With most of my current AWS routines I build CFC functions wrappers that make REST API calls.
p

paul

12/12/2022, 11:15 PM
Thats what the SDK's do, the cfml libs will be doing the same ( I assume ). The current best one is ( https://github.com/jcberquist/aws-cfml )
It's a bit defunct now thouhg, the pr's arnt being merged in
m

Mark Berning

12/12/2022, 11:18 PM
We didn't want to overload the CF JVM with a bunch of Java SDKs, but your probably right about the packages.
p

paul

12/12/2022, 11:20 PM
Yes, the java libs are good but can be fiddly to use with cfml unfortunatly.
View count: 5