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
I was breaking my head over this from last couple of hrs. Giving the form-port as integer instead of a string solved it. Sorry for spamming you. Do you have suggestions how I can debug / trace such errors ?
It helps to have a Java background. And for many tasks you need to have the Javadocs open in the browser, and then you'd see setFromPort takes an int as its argument.
Hi,
I am trying to add a new rule to a security group I created.
(http://docs.aws.amazon.com/AWSSdkDocsJava/latest/DeveloperGuide/authorize-ingress.html)
(ns aws-infra.security-groups
(:require [amazonica.core :as aws-core :refer [defcredential]]
[amazonica.aws.ec2 :as aws-ec2])))
(aws-ec2/authorize-security-group-ingress
:group-name "test-group"
:ip-permissions [{:cidr-ip "21.21.22.23/32"
:ip-protocol "tcp"
:from-port "22"
:to-port "22"}])
I get the below exception, can you please help ?
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Character
RT.java:1087 clojure.lang.RT.intCast
core.clj:846 clojure.core/int
core.clj:314 amazonica.core/coerce-value
core.clj:508 amazonica.core/invoke-method
AFn.java:160 clojure.lang.AFn.applyToHelper
The text was updated successfully, but these errors were encountered: